gcc -Wall example1.c example1.c:9:12: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printf(buffer); ^~~~~~ example1.c:9:12: note: treat the string as an argument to avoid this printf(buffer); ^ "%s", 1 warning generated.