aboutsummaryrefslogtreecommitdiff
path: root/libio/vasprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/vasprintf.c')
-rw-r--r--libio/vasprintf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libio/vasprintf.c b/libio/vasprintf.c
index 57a3b08..f8dba80 100644
--- a/libio/vasprintf.c
+++ b/libio/vasprintf.c
@@ -46,22 +46,22 @@ _IO_vasprintf (result_ptr, format, args)
if (string == NULL)
return -1;
#ifdef _IO_MTSAFE_IO
- sf._f._lock = &lock;
+ sf._sbf._f._lock = &lock;
#endif
_IO_init((_IO_FILE*)&sf, 0);
_IO_JUMPS((_IO_FILE*)&sf) = &_IO_str_jumps;
_IO_str_init_static ((_IO_FILE*)&sf, string, init_string_size, string);
- sf._f._flags &= ~_IO_USER_BUF;
+ sf._sbf._f._flags &= ~_IO_USER_BUF;
sf._s._allocate_buffer = (_IO_alloc_type)malloc;
sf._s._free_buffer = (_IO_free_type)free;
ret = _IO_vfprintf((_IO_FILE*)&sf, format, args);
if (ret < 0)
return ret;
- *result_ptr = (char*)realloc(sf._f._IO_buf_base,
- (sf._f._IO_write_ptr - sf._f._IO_write_base) +1);
+ *result_ptr = (char*)realloc(sf._sbf._f._IO_buf_base,
+ (sf._sbf._f._IO_write_ptr - sf._sbf._f._IO_write_base) +1);
if (*result_ptr == NULL)
- *result_ptr = sf._f._IO_buf_base;
- (*result_ptr)[sf._f._IO_write_ptr-sf._f._IO_write_base] = '\0';
+ *result_ptr = sf._sbf._f._IO_buf_base;
+ (*result_ptr)[sf._sbf._f._IO_write_ptr-sf._sbf._f._IO_write_base] = '\0';
return ret;
}
weak_alias (_IO_vasprintf, vasprintf)