diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2022-05-25 04:25:35 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2022-05-25 04:25:35 +0000 |
commit | cd7e610bbfe3d6f72d5ce4b8dd158053123e864e (patch) | |
tree | 33ad9ecddf9f6346ffd20ee41d8a804c775a9e13 | |
parent | 4d6a5156a6eb7f56b30d93853a872e36dadde81b (diff) | |
parent | b2f16c6ccc7a23e374089be19e79369bc2942274 (diff) | |
download | gcompat-cd7e610bbfe3d6f72d5ce4b8dd158053123e864e.tar.gz gcompat-cd7e610bbfe3d6f72d5ce4b8dd158053123e864e.tar.bz2 gcompat-cd7e610bbfe3d6f72d5ce4b8dd158053123e864e.tar.xz gcompat-cd7e610bbfe3d6f72d5ce4b8dd158053123e864e.zip |
Merge branch 'dprintf' into 'current'
stdio: add __dprintf_chk
See merge request adelie/gcompat!20
-rw-r--r-- | libgcompat/stdio.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libgcompat/stdio.c b/libgcompat/stdio.c index 0ff5feb..f0b248a 100644 --- a/libgcompat/stdio.c +++ b/libgcompat/stdio.c @@ -234,3 +234,16 @@ char *tmpnam_r(char *s) return tmpnam(s); } + +int +__dprintf_chk (int d, int flags, const char *format, ...) +{ + va_list arg; + int done; + + va_start(arg, format); + done = vdprintf(d, format, arg); + va_end(arg); + + return done; +} |