b=141317 CopyToLowerCase produces strings with random content

r=jag sr=alecf a=scc/rjesup adt=jaime


git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_0_BRANCH@121770 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kaie%netscape.com
2002-05-17 20:05:33 +00:00
parent 5c41eb1716
commit da5d212dfc
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;
}