Fixed strlcpy issue I didn't notice before

remotes/1696625325996769446/tmp_refs/heads/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){ 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){ 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