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

14 lines
243 B
C
Raw Permalink Normal View History

2018-07-13 01:31:50 +00:00
#include <stdio.h>
#include <stdarg.h>
#include "fortify.h"
int __printf_chk(int flag, const char *restrict fmt, ...)
{
//FIXME: fortify
int ret;
va_list ap;
va_start(ap, fmt);
ret = vfprintf(stdout, fmt, ap);
va_end(ap);
return ret;
}