b=141317 CopyToLowerCase produces strings with random content

r=jag sr=alecf


git-svn-id: svn://10.0.0.236/trunk@120432 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kaie%netscape.com
2002-05-01 14:02:11 +00:00
parent c51bf4c840
commit 565eab0df8
2 changed files with 8 additions and 0 deletions

View File

@@ -441,6 +441,8 @@ class CopyToUpperCase
char ch = *aSource;
if ((ch >= 'a') && (ch <= 'z'))
*cp = ch - ('a' - 'A');
else
*cp = ch;
++aSource;
++cp;
}
@@ -535,6 +537,8 @@ class CopyToLowerCase
char ch = *aSource;
if ((ch >= 'A') && (ch <= 'Z'))
*cp = ch + ('a' - 'A');
else
*cp = ch;
++aSource;
++cp;
}