mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 05:26:58 +00:00
[CRT] Only write to the output buffer when necessary in _strlwr. CORE-16667
Like e884290d29
, this is also a hack and is missing locale awareness.
This commit is contained in:
parent
6f232770d3
commit
d528e63477
|
@ -7,9 +7,13 @@
|
|||
char * CDECL _strlwr(char *x)
|
||||
{
|
||||
char *y=x;
|
||||
char ch, lower;
|
||||
|
||||
while (*y) {
|
||||
*y=tolower(*y);
|
||||
ch = *y;
|
||||
lower = tolower(ch);
|
||||
if (ch != lower)
|
||||
*y = lower;
|
||||
y++;
|
||||
}
|
||||
return x;
|
||||
|
|
Loading…
Reference in a new issue