diff --git a/undpu.c b/undpu.c index 17aad6c..4c880aa 100644 --- a/undpu.c +++ b/undpu.c @@ -58,7 +58,7 @@ int main (int argc, char **argv){ } } if(!out){ - strncpy(output,argv[0],strlen(argv[0])-4); + strlcpy(output,argv[0],strlen(argv[0])-4); if((joe = fopen(output,"w"))==NULL){ fputs("Ummm, the output file doesn't work.\n",stderr); return EXIT_FAILURE;