From: ceriel Date: Wed, 26 Jun 1991 17:32:44 +0000 (+0000) Subject: Fixed call to mktemp() so that it does not try to change a constant string X-Git-Tag: release-5-5~1091 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=c77a7e6d323dcc18cb76f9403cc4f8c2af383628;p=ack.git Fixed call to mktemp() so that it does not try to change a constant string --- diff --git a/util/amisc/astrip.c b/util/amisc/astrip.c index 686e11629..0a1f6d961 100644 --- a/util/amisc/astrip.c +++ b/util/amisc/astrip.c @@ -14,6 +14,7 @@ */ +char tmpnam[] = "/tmp/sXXXXXX"; char *tname; char *mktemp(); FILE *fopen(); @@ -29,7 +30,7 @@ char **argv; signal(SIGHUP, SIG_IGN); signal(SIGINT, SIG_IGN); signal(SIGQUIT, SIG_IGN); - tname = mktemp("/tmp/sXXXXX"); + tname = mktemp(tmpnam); while(--argc) { if ((status = strip(argv[argc])) > 1) break;