fix commit that should nto have happened

This commit is contained in:
Mark 2004-02-07 23:47:56 +00:00
parent 6787bc18a2
commit e709b0fc0f
2 changed files with 2 additions and 6 deletions

View file

@ -14,6 +14,7 @@
#include <stdio.h>
#include <stdlib.h> /* for mkstemp() */
#include <libgen.h> /* for dirname() */
#include <string.h> /* for strlen() */
#include <limits.h> /* for PATH_MAX */
#ifdef SYSLOG
@ -531,8 +532,7 @@ rta_save(TBLDEF *ptbl, char *fname)
/* Open a temp file in the same directory as the users target file */
(void) strncpy(path, fname, PATH_MAX);
// (void) strncpy(tfile, dirname(path), PATH_MAX);
(void) strncpy(tfile, path, PATH_MAX);
(void) strncpy(tfile, dirname(path), PATH_MAX);
(void) strcat(tfile, "/tmpXXXXXX");
fd = mkstemp(tfile);
if (fd < 0)