Changed the meta parse function for performance,

bug 144917, r=ducarroz, sr=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@121880 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nhotta%netscape.com
2002-05-20 19:51:35 +00:00
parent 0b31da6989
commit f7a136c759

View File

@@ -568,7 +568,8 @@ nsMsgI18NParseMetaCharset(nsFileSpec* fileSpec)
if (*buffer == nsCRT::CR || *buffer == nsCRT::LF || *buffer == 0)
continue;
for (int i = 0; i < (int)PL_strlen(buffer); i++) {
PRUint32 len = PL_strlen(buffer);
for (PRUint32 i = 0; i < len; i++) {
buffer[i] = toupper(buffer[i]);
}
@@ -590,6 +591,7 @@ nsMsgI18NParseMetaCharset(nsFileSpec* fileSpec)
{
PL_strncpy(charset, token, sizeof(charset));
charset[sizeof(charset)-1] = '\0';
break;
}
}
}