Fixed to include strlcpy change

pull/13/head
silverwizard 5 years ago
parent 4b1f3df74e
commit b7ec7aa6cf
  1. 2
      undpu.c

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

Loading…
Cancel
Save