Fix make_message example.

This commit is contained in:
Ulrich Drepper 2006-02-04 07:12:54 +00:00
parent 0fdd44dcb4
commit 53631fa890
1 changed files with 2 additions and 1 deletions

View File

@ -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.} */