Initialize so that stream can be wide oriented.
authordrepper <drepper>
Wed, 16 Jun 1999 21:55:35 +0000 (21:55 +0000)
committerdrepper <drepper>
Wed, 16 Jun 1999 21:55:35 +0000 (21:55 +0000)
libio/obprintf.c

index 0e947b2..29e09d4 100644 (file)
@@ -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