Uppercase fix for Turkish. Make use of full allocated space of ustr.
This commit is contained in:
parent
be5cbc22ba
commit
88f689c744
1 changed files with 1 additions and 1 deletions
|
|
@ -18376,7 +18376,7 @@ static char *uppercase(const char *restrict const str)
|
||||||
dest[i] = towupper(dest[i]);
|
dest[i] = towupper(dest[i]);
|
||||||
}
|
}
|
||||||
while (dest[i++]);
|
while (dest[i++]);
|
||||||
wcstombs(ustr, dest, n); /* at most n bytes written */
|
wcstombs(ustr, dest, n * 2); /* at most n * 2 bytes written */
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
printf(" ORIGINAL: %s\n" "UPPERCASE: %s\n\n", str, ustr);
|
printf(" ORIGINAL: %s\n" "UPPERCASE: %s\n\n", str, ustr);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue