projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22827fb
)
(_IO_obstack_vprintf): Call obstack_make_room, not obstack_blank.
author
Ulrich Drepper
<drepper@redhat.com>
Tue, 27 Jun 2000 16:08:27 +0000
(16:08 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Tue, 27 Jun 2000 16:08:27 +0000
(16:08 +0000)
libio/obprintf.c
patch
|
blob
|
history
diff --git
a/libio/obprintf.c
b/libio/obprintf.c
index
cefe9a4
..
448b4f7
100644
(file)
--- 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);
}