-@@ -72,7 +74,42 @@
- f._bf._size = f._w = n;
- f._extra = &ext;
- INITEXTRA(&f);
-- ret = __vfprintf(&f, fmt, ap);
-+ ret = __vfprintf(&f, __current_locale(), fmt, ap);
-+ if (on > 0)
-+ *f._p = '\0';
-+ return (ret);
-+}
-+
-+int
-+vsnprintf_l(char * __restrict str, size_t n, locale_t loc,
-+ const char * __restrict fmt, __va_list ap)
-+{
-+ size_t on;
-+ int ret;
-+ char dummy[2];
-+ FILE f;
+
+ int
+-vsnprintf(char * __restrict str, size_t n, const char * __restrict fmt,
++vsnprintf_l(char * __restrict str, size_t n, locale_t loc, const char * __restrict fmt,
+ __va_list ap)
+ {
+ size_t on;
+ int ret;
+ char dummy[2];
+ FILE f;