X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=blobdiff_plain;f=libio%2Fobprintf.c;h=29e09d428156df90152d739784c9ab8a80065982;hp=0e947b25ad7a17f2d7ccf1e31edce87452d807e6;hb=4e8fede0da7b5256b666368a9f47614a70e6e9db;hpb=0be92e5bc27aaeb5058d263bc2ad280fc458e612 diff --git a/libio/obprintf.c b/libio/obprintf.c index 0e947b25ad..29e09d4281 100644 --- a/libio/obprintf.c +++ b/libio/obprintf.c @@ -127,11 +127,11 @@ _IO_obstack_vprintf (struct obstack *obstack, const char *format, va_list args) new_f.ofile.file.file._lock = &new_f.lock; #endif - _IO_init (&new_f.ofile.file.file, 0); - _IO_JUMPS (&new_f.ofile.file.file) = &_IO_obstack_jumps; + _IO_no_init (&new_f.ofile.file.file, 0, -1, NULL, NULL); + _IO_JUMPS (&new_f.ofile.file) = &_IO_obstack_jumps; _IO_str_init_static (&new_f.ofile.file.file, obstack_base (obstack), - obstack_object_size (obstack) + obstack_room (obstack), - obstack_next_free (obstack)); + (obstack_object_size (obstack) + + obstack_room (obstack)), obstack_next_free (obstack)); /* Now allocate the rest of the current chunk. */ obstack_blank_fast (obstack, (new_f.ofile.file.file._IO_write_end