cppcheck/samples/outOfBounds/good.c

7 lines
88 B
C

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