summaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-02-04 07:12:54 +0000
committerUlrich Drepper <drepper@redhat.com>2006-02-04 07:12:54 +0000
commit53631fa89014506efddac9e76896a18a4cac7564 (patch)
tree93d43e81fa4a89f9466d657d7675c9e9c0187de0 /manual
parent0fdd44dcb4d34f8d19f89a7f3f54be010f1ee62b (diff)
Fix make_message example.
Diffstat (limited to 'manual')
-rw-r--r--manual/stdio.texi3
1 files changed, 2 insertions, 1 deletions
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.} */