From 642babc2e15047837f3087940c0f9ef6980fe8fb Mon Sep 17 00:00:00 2001 From: silverwizard Date: Fri, 1 Nov 2019 00:10:50 -0400 Subject: [PATCH] Fixed strlcpy issue I didn't notice before --- undpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;