From: Ralph Corderoy Date: Wed, 19 Oct 2016 17:47:04 +0000 (+0100) Subject: Replace sprintf() with strcpy(); it's no worse. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/c7e87bbec2da153d2de464977c216502196602d8?ds=inline Replace sprintf() with strcpy(); it's no worse. --- 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);