eliminate nsCRT::strlen for char* strings (part 5), bug 124536 r=dp sr=brendan

This commit is contained in:
cathleen@netscape.com
2002-02-20 06:38:38 +00:00
parent bbe99c0aaa
commit c63437dfa3
15 changed files with 50 additions and 50 deletions

View File

@@ -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++)