123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #include "config.h"
- #include <ssp/ssp.h>
- #include <stdarg.h>
- #ifdef HAVE_STDIO_H
- # include <stdio.h>
- #endif
- extern void __chk_fail (void) __attribute__((__noreturn__));
- #ifdef HAVE_USABLE_VSNPRINTF
- int
- __vsnprintf_chk (char *s, size_t n, int flags __attribute__((unused)),
- size_t slen, const char *format, va_list arg)
- {
- if (n > slen)
- __chk_fail ();
- return vsnprintf (s, n, format, arg);
- }
- #endif
|