From: Ulrich Drepper Date: Tue, 27 Jun 2000 16:08:27 +0000 (+0000) Subject: (_IO_obstack_vprintf): Call obstack_make_room, not obstack_blank. X-Git-Tag: upstream/2.30~25289 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b420597ee8b2a00ac0d0cbf9f7fe387ef55d0eb0;p=external%2Fglibc.git (_IO_obstack_vprintf): Call obstack_make_room, not obstack_blank. --- diff --git a/libio/obprintf.c b/libio/obprintf.c index cefe9a4..448b4f7 100644 --- a/libio/obprintf.c +++ b/libio/obprintf.c @@ -144,14 +144,13 @@ _IO_obstack_vprintf (struct obstack *obstack, const char *format, va_list args) /* We have to handle the allocation a bit different since the `_IO_str_init_static' function would handle a size of zero different from what we expect. */ - size = 64; /* Get more memory. */ - obstack_blank (obstack, size); + obstack_make_room (obstack, 64); - /* Recompute who much room we have. */ + /* Recompute how much room we have. */ room = obstack_room (obstack); - size += room; + size = room; assert (size != 0); }