From cfba19423d8debbd5ee71ba34235ded0f7181cf7 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 22 Jul 2003 20:05:55 +0000 Subject: 2003-07-21 Art Haas * manual/charset.texi (Converting a Character): Fix example code so a valid pointer is returned. --- manual/charset.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'manual') diff --git a/manual/charset.texi b/manual/charset.texi index 2ebde7d..5063246 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; @} -- cgit v1.1