Fixed strlcpy issue I didn't notice before

master
silverwizard 5 years ago
parent 3a3278f95b
commit 642babc2e1
  1. 3
      undpu.c

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

Loading…
Cancel
Save