From 74829b267e701feb711ec8d42ccd2ef575758789 Mon Sep 17 00:00:00 2001 From: "sgehani%netscape.com" Date: Tue, 17 Apr 2001 05:03:05 +0000 Subject: [PATCH] Fix spotlight warnings thanks to Simon. b = 76255 r = ssu, sgehani (checking in for sfraser) sr = sfraser --- xpinstall/wizard/mac/src/Deflation.c | 2 +- xpinstall/wizard/mac/src/LicenseWin.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/xpinstall/wizard/mac/src/Deflation.c b/xpinstall/wizard/mac/src/Deflation.c index e9efb2f083d..60e8a404f50 100644 --- a/xpinstall/wizard/mac/src/Deflation.c +++ b/xpinstall/wizard/mac/src/Deflation.c @@ -221,7 +221,7 @@ InflateFiles(void *hZip, void *hFind, short tgtVRefNum, long tgtDirID) if (err!=noErr) return err; - strncpy(macfilename, filename, strlen(filename)); + strcpy(macfilename, filename); SLASHES_2_COLONS(macfilename); HLock(fullPathH); fullPathStr = NewPtrClear(fullPathLen + strlen(macfilename) + 1); diff --git a/xpinstall/wizard/mac/src/LicenseWin.c b/xpinstall/wizard/mac/src/LicenseWin.c index 6e180454c22..b500ec38670 100644 --- a/xpinstall/wizard/mac/src/LicenseWin.c +++ b/xpinstall/wizard/mac/src/LicenseWin.c @@ -192,6 +192,7 @@ ShowTxt(void) if(gControls->lw->licTxt) { RGBColor backColorOld; + Rect textRect; // get back color GetBackColor(&backColorOld); @@ -200,8 +201,9 @@ ShowTxt(void) BackColor(whiteColor); // erase rect and update - EraseRect(&(**(gControls->lw->licTxt)).viewRect); - TEUpdate( &(**(gControls->lw->licTxt)).viewRect, gControls->lw->licTxt); + textRect = (**(gControls->lw->licTxt)).viewRect; + EraseRect(&textRect); + TEUpdate(&textRect, gControls->lw->licTxt); // restore back color RGBBackColor(&backColorOld);