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:
Roland McGrath 2003-07-22 20:05:55 +00:00
parent 7220da7c36
commit cfba19423d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
@}