aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-06-27 16:08:27 +0000
committerUlrich Drepper <drepper@redhat.com>2000-06-27 16:08:27 +0000
commitb420597ee8b2a00ac0d0cbf9f7fe387ef55d0eb0 (patch)
tree29ce0c32a1261ca8616fa64c15b3f536b2503801
parent22827fb10b7963e873025416a601c185ee6dade5 (diff)
downloadglibc-b420597ee8b2a00ac0d0cbf9f7fe387ef55d0eb0.tar
glibc-b420597ee8b2a00ac0d0cbf9f7fe387ef55d0eb0.tar.gz
glibc-b420597ee8b2a00ac0d0cbf9f7fe387ef55d0eb0.tar.bz2
glibc-b420597ee8b2a00ac0d0cbf9f7fe387ef55d0eb0.zip
(_IO_obstack_vprintf): Call obstack_make_room, not obstack_blank.
-rw-r--r--libio/obprintf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libio/obprintf.c b/libio/obprintf.c
index cefe9a4fee..448b4f7d5f 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);
}