1 #include <stdio.h> 2 #include <string.h> 3 4 int main(int argc, char **argv) { 5 char buf[10]; 6 char *buf2; 7 strlcpy(buf2, "foo", sizeof buf); 8 return 1; 9 } 10