cppcheck/samples/outOfBounds/good.c

8 lines
102 B
C

#include <stdio.h>
int main()
{
char str[10];
snprintf(str, 10, "%s", "abc");
return 0;
}