SmartAudio/package/avs/libsensory/files/wrapper/chk/vsnprintf_chk.c

9 lines
231 B
C
Executable File

#include <stdio.h>
#include <stdarg.h>
#include "fortify.h"
int __vsnprintf_chk(char *restrict s, size_t n, int flag, size_t sn, const char *restrict fmt, va_list ap)
{
if(sn < n) __chk_fail();
return vsnprintf(s, n, fmt, ap);
}