ANSIfication; bug report 4.3BSD/bin/223 BSD-4_3_Net_1-Snapshot-Development
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 1 Jan 1989 07:06:26 +0000 (23:06 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 1 Jan 1989 07:06:26 +0000 (23:06 -0800)
SCCS-vsn: usr.bin/diff/diff/diffreg.c 4.18

usr/src/usr.bin/diff/diff/diffreg.c

index fe3b870..0dfe598 100644 (file)
@@ -262,6 +262,8 @@ same:
        done();
 }
 
        done();
 }
 
+char *tempfile = "/tmp/dXXXXX";
+
 char *
 copytemp()
 {
 char *
 copytemp()
 {
@@ -272,7 +274,7 @@ copytemp()
        signal(SIGINT,done);
        signal(SIGPIPE,done);
        signal(SIGTERM,done);
        signal(SIGINT,done);
        signal(SIGPIPE,done);
        signal(SIGTERM,done);
-       tempfile = mktemp("/tmp/dXXXXX");
+       mktemp(tempfile);
        f = creat(tempfile,0600);
        if (f < 0) {
                fprintf(stderr, "diff: ");
        f = creat(tempfile,0600);
        if (f < 0) {
                fprintf(stderr, "diff: ");