From c7e87bbec2da153d2de464977c216502196602d8 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Wed, 19 Oct 2016 18:47:04 +0100 Subject: [PATCH] Replace sprintf() with strcpy(); it's no worse. --- uip/whatnowsbr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index 088ca242..43e31d47 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -319,7 +319,7 @@ WhatNow (int argc, char **argv) */ if (*(argp+1) == (char *)0) { - (void)sprintf(buf, "$SHELL -c \"cd&&pwd\""); + strcpy(buf, "$SHELL -c \"cd&&pwd\""); } else { writesomecmd(buf, BUFSIZ, "cd", "pwd", argp); -- 2.56.0