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

8 lines
174 B
C
Raw Normal View History

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