mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
2003-07-21 Art Haas <ahaas@airmail.net>
* manual/charset.texi (Converting a Character): Fix example code so a valid pointer is returned.
This commit is contained in:
parent
7220da7c36
commit
cfba19423d
@ -696,7 +696,7 @@ mbstouwcs (const char *s)
|
||||
if (nbytes >= (size_t) -2)
|
||||
/* Invalid input string. */
|
||||
return NULL;
|
||||
*result++ = towupper (tmp[0]);
|
||||
*wcp++ = towupper (tmp[0]);
|
||||
len -= nbytes;
|
||||
s += nbytes;
|
||||
@}
|
||||
|
Loading…
Reference in New Issue
Block a user