eliminate nsCRT::strlen for char* strings (part 5), bug 124536 r=dp sr=brendan
This commit is contained in:
@@ -88,9 +88,9 @@ nsLocalFile::CreateUnique(PRUint32 type, PRUint32 attributes)
|
||||
}
|
||||
|
||||
// 27 should work on Macintosh, Unix, and Win32.
|
||||
const int maxRootLength = 27 - nsCRT::strlen(suffix) - 1;
|
||||
const int maxRootLength = 27 - strlen(suffix) - 1;
|
||||
|
||||
if ((int)nsCRT::strlen(leafName) > (int)maxRootLength)
|
||||
if ((int)strlen(leafName) > (int)maxRootLength)
|
||||
leafName[maxRootLength] = '\0';
|
||||
|
||||
for (short indx = 1; indx < 10000; indx++)
|
||||
|
||||
Reference in New Issue
Block a user