about summary refs log tree commit diff
path: root/manual/charset.texi
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-07-22 20:05:55 +0000
committerRoland McGrath <roland@gnu.org>2003-07-22 20:05:55 +0000
commitcfba19423d8debbd5ee71ba34235ded0f7181cf7 (patch)
tree667aa710598f574445821f439e0583742cef2f0f /manual/charset.texi
parent7220da7c365f30c9e545809b472909cd17e633a1 (diff)
downloadglibc-cfba19423d8debbd5ee71ba34235ded0f7181cf7.tar.gz
glibc-cfba19423d8debbd5ee71ba34235ded0f7181cf7.tar.xz
glibc-cfba19423d8debbd5ee71ba34235ded0f7181cf7.zip
2003-07-21 Art Haas <ahaas@airmail.net>
	* manual/charset.texi (Converting a Character): Fix example code so a
	valid pointer is returned.
Diffstat (limited to 'manual/charset.texi')
-rw-r--r--manual/charset.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/manual/charset.texi b/manual/charset.texi
index 2ebde7d275..5063246d61 100644
--- a/manual/charset.texi
+++ b/manual/charset.texi
@@ -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;
     @}