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

8 lines
180 B
C
Raw Permalink Normal View History

2018-07-13 01:31:50 +00:00
#include <string.h>
#include "fortify.h"
char *__strncat_chk(char *restrict d, const char *restrict s, size_t n, size_t dn)
{
if(dn < n) __chk_fail();
return strncat(d, s, n);
}