diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-02-04 07:12:54 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-02-04 07:12:54 +0000 |
commit | 53631fa89014506efddac9e76896a18a4cac7564 (patch) | |
tree | 93d43e81fa4a89f9466d657d7675c9e9c0187de0 /manual | |
parent | 0fdd44dcb4d34f8d19f89a7f3f54be010f1ee62b (diff) | |
download | glibc-53631fa89014506efddac9e76896a18a4cac7564.zip glibc-53631fa89014506efddac9e76896a18a4cac7564.tar.gz glibc-53631fa89014506efddac9e76896a18a4cac7564.tar.bz2 |
Fix make_message example.
Diffstat (limited to 'manual')
-rw-r--r-- | manual/stdio.texi | 3 |
1 files changed, 2 insertions, 1 deletions
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.} */ |