diff --git a/undpu.c b/undpu.c index 4c880aa..c0c3972 100644 --- a/undpu.c +++ b/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;