From fd8df9160f2f5e88d7dbc7067e3e5e24b7622651 Mon Sep 17 00:00:00 2001 From: thib Date: Wed, 4 Jul 2001 16:16:15 +0000 Subject: [PATCH] =?utf8?q?=1BOA=20we=20now=20use=20Set()=20macro?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- subs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/subs.c b/subs.c index 0ec3b80..7f99391 100644 --- a/subs.c +++ b/subs.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: subs.c,v 1.11 2001-06-24 13:23:40 thib Exp $ */ + /* $Id: subs.c,v 1.12 2001-07-04 16:16:15 thib Exp $ */ #include "global.h" #include "subs.h" @@ -107,8 +107,7 @@ temp_file(char **name) i = 0; do { i++; - free(name_local); - name_local = tempnam(NULL, NULL); + Set(name_local, tempnam(NULL, NULL)); if ( name_local == NULL ) die("Can't find a unique temporary filename"); fd = open(name_local, O_RDWR|O_CREAT|O_EXCL|O_APPEND, S_IRUSR|S_IWUSR); -- 2.50.1