2003-07-21 Art Haas <ahaas@airmail.net>
authorRoland McGrath <roland@gnu.org>
Tue, 22 Jul 2003 20:05:55 +0000 (20:05 +0000)
committerRoland McGrath <roland@gnu.org>
Tue, 22 Jul 2003 20:05:55 +0000 (20:05 +0000)
* manual/charset.texi (Converting a Character): Fix example code so a
valid pointer is returned.

manual/charset.texi

index 2ebde7d..5063246 100644 (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;
     @}