From 53631fa89014506efddac9e76896a18a4cac7564 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 4 Feb 2006 07:12:54 +0000 Subject: Fix make_message example. --- manual/stdio.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'manual') diff --git a/manual/stdio.texi b/manual/stdio.texi index e4278b7a32..c471209134 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.} */ -- cgit v1.2.3