1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

(_IO_obstack_vprintf): Call obstack_make_room, not obstack_blank.

This commit is contained in:
Ulrich Drepper
2000-06-27 16:08:27 +00:00
parent 22827fb10b
commit b420597ee8

View File

@@ -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 /* We have to handle the allocation a bit different since the
`_IO_str_init_static' function would handle a size of zero `_IO_str_init_static' function would handle a size of zero
different from what we expect. */ different from what we expect. */
size = 64;
/* Get more memory. */ /* 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); room = obstack_room (obstack);
size += room; size = room;
assert (size != 0); assert (size != 0);
} }