Fixed call to mktemp() so that it does not try to change a constant string
authorceriel <none@none>
Wed, 26 Jun 1991 17:32:44 +0000 (17:32 +0000)
committerceriel <none@none>
Wed, 26 Jun 1991 17:32:44 +0000 (17:32 +0000)
util/amisc/astrip.c

index 686e116..0a1f6d9 100644 (file)
@@ -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;