From: Keith Bostic Date: Sun, 1 Jan 1989 07:06:26 +0000 (-0800) Subject: ANSIfication; bug report 4.3BSD/bin/223 X-Git-Tag: BSD-4_3_Net_1-Snapshot-Development X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/409c65135cc7c841ba37c7ac0ed458ae61e09683?hp=ffa8a2681ee942ed3e3b1c208506ea428b574397 ANSIfication; bug report 4.3BSD/bin/223 SCCS-vsn: usr.bin/diff/diff/diffreg.c 4.18 --- diff --git a/usr/src/usr.bin/diff/diff/diffreg.c b/usr/src/usr.bin/diff/diff/diffreg.c index fe3b870e2e..0dfe598c59 100644 --- a/usr/src/usr.bin/diff/diff/diffreg.c +++ b/usr/src/usr.bin/diff/diff/diffreg.c @@ -262,6 +262,8 @@ same: done(); } +char *tempfile = "/tmp/dXXXXX"; + char * copytemp() { @@ -272,7 +274,7 @@ copytemp() 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: ");