From: Ulrich Drepper Date: Sat, 4 Feb 2006 07:12:54 +0000 (+0000) Subject: Fix make_message example. X-Git-Tag: upstream/2.20~8800 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53631fa89014506efddac9e76896a18a4cac7564;p=platform%2Fupstream%2Flinaro-glibc.git Fix make_message example. --- diff --git a/manual/stdio.texi b/manual/stdio.texi index e4278b7..c471209 100644 --- a/manual/stdio.texi +++ b/manual/stdio.texi @@ -2357,7 +2357,8 @@ make_message (char *name, char *value) @{ /* @r{Reallocate buffer now that we know how much space is needed.} */ - buffer = (char *) xrealloc (buffer, nchars + 1); + size = nchars + 1; + buffer = (char *) xrealloc (buffer, size); if (buffer != NULL) /* @r{Try again.} */