aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/asprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/asprintf.c')
-rw-r--r--stdio-common/asprintf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/stdio-common/asprintf.c b/stdio-common/asprintf.c
index bff858e..8943ffc 100644
--- a/stdio-common/asprintf.c
+++ b/stdio-common/asprintf.c
@@ -16,11 +16,7 @@
<http://www.gnu.org/licenses/>. */
#include <stdarg.h>
-#include <stdio.h>
-
#include <libioP.h>
-#define vasprintf(s, f, a) _IO_vasprintf (s, f, a)
-#undef __asprintf
/* Write formatted output from FORMAT to a string which is
allocated with malloc and stored in *STRING_PTR. */
@@ -32,7 +28,7 @@ ___asprintf (char **string_ptr, const char *format, ...)
int done;
va_start (arg, format);
- done = vasprintf (string_ptr, format, arg);
+ done = __vasprintf_internal (string_ptr, format, arg, 0);
va_end (arg);
return done;