mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Fix spotlight warnings thanks to Simon.
This commit is contained in:
parent
ad0d00e91c
commit
8ee1febf8f
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user