mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-24 05:44:10 +00:00
b=141317 CopyToLowerCase produces strings with random content
r=jag sr=alecf
This commit is contained in:
parent
0a246109b7
commit
d45d8c2bc9
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user