From 7ef7e29ebb36cb113e5777265b22709d38a4ee60 Mon Sep 17 00:00:00 2001 From: silverwizard Date: Sun, 27 Oct 2019 21:32:42 -0400 Subject: [PATCH] Changed undpu to use strlcpy --- undpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/undpu.c b/undpu.c index a112e12..263addd 100644 --- a/undpu.c +++ b/undpu.c @@ -41,7 +41,7 @@ int main (int argc, char **argv){ return EXIT_FAILURE; } } - strncpy(output,argv[1],strlen(argv[1])-4); + strlcpy(output,argv[1],strlen(argv[1])-4); if((joe = fopen(output,"w"))==NULL){ fputs("Ummm, the output file doesn't work.\n",stderr); return EXIT_FAILURE; -- 2.37.3