diff options
author | Daniël van de Giessen <daniel@dvdgiessen.nl> | 2024-06-12 18:29:27 +0200 |
---|---|---|
committer | Daniël van de Giessen <daniel@dvdgiessen.nl> | 2024-06-12 18:29:27 +0200 |
commit | 9a75570c55def665acb935d8ca903bbca65b82d2 (patch) | |
tree | ca5d0792e3257e9ad27b95ce7d720f14786dc454 | |
parent | 7c1f568ac90d2fb0cb16435b670755935981b14f (diff) | |
download | gcompat-9a75570c55def665acb935d8ca903bbca65b82d2.tar.gz gcompat-9a75570c55def665acb935d8ca903bbca65b82d2.tar.bz2 gcompat-9a75570c55def665acb935d8ca903bbca65b82d2.tar.xz gcompat-9a75570c55def665acb935d8ca903bbca65b82d2.zip |
stdio: add __vdprintf_chk
-rw-r--r-- | libgcompat/stdio.c | 9 |
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; |