From b7ec7aa6cf5bcf95ac7a16fc83a16b2ad9ca81cf Mon Sep 17 00:00:00 2001 From: silverwizard Date: Thu, 31 Oct 2019 13:55:57 -0400 Subject: [PATCH] Fixed to include strlcpy change --- undpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/undpu.c b/undpu.c index 17aad6c..4c880aa 100644 --- a/undpu.c +++ b/undpu.c @@ -58,7 +58,7 @@ int main (int argc, char **argv){ } } if(!out){ - strncpy(output,argv[0],strlen(argv[0])-4); + strlcpy(output,argv[0],strlen(argv[0])-4); if((joe = fopen(output,"w"))==NULL){ fputs("Ummm, the output file doesn't work.\n",stderr); return EXIT_FAILURE;