summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgcompat/stdio.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libgcompat/stdio.c b/libgcompat/stdio.c
index dbadb25..ef2e5f0 100644
--- a/libgcompat/stdio.c
+++ b/libgcompat/stdio.c
@@ -266,6 +266,13 @@ char *tmpnam_r(char *s)
return tmpnam(s);
}
+int __vdprintf_chk (int d, int flags, const char *format, va_list ap)
+{
+ assert(format != NULL);
+
+ return vdprintf(d, format, ap);
+}
+
int
__dprintf_chk (int d, int flags, const char *format, ...)
{
@@ -273,7 +280,7 @@ __dprintf_chk (int d, int flags, const char *format, ...)
int done;
va_start(arg, format);
- done = vdprintf(d, format, arg);
+ done = __vdprintf_chk(d, flags, format, arg);
va_end(arg);
return done;