cppcheck/samples/outOfBounds/good.c

8 lines
89 B
C
Raw Normal View History

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