summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniël van de Giessen <daniel@dvdgiessen.nl>2024-06-12 18:29:27 +0200
committerDaniël van de Giessen <daniel@dvdgiessen.nl>2024-06-12 18:29:27 +0200
commit9a75570c55def665acb935d8ca903bbca65b82d2 (patch)
treeca5d0792e3257e9ad27b95ce7d720f14786dc454
parent7c1f568ac90d2fb0cb16435b670755935981b14f (diff)
downloadgcompat-9a75570c55def665acb935d8ca903bbca65b82d2.tar.gz
gcompat-9a75570c55def665acb935d8ca903bbca65b82d2.tar.bz2
gcompat-9a75570c55def665acb935d8ca903bbca65b82d2.tar.xz
gcompat-9a75570c55def665acb935d8ca903bbca65b82d2.zip
stdio: add __vdprintf_chk
-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;