openbsd-ports/news/cnews/patches/patch-ac
1998-04-29 03:54:08 +00:00

30 lines
580 B
Plaintext

*** input/newsspool.c.orig Tue Apr 28 23:42:23 1998
--- input/newsspool.c Tue Apr 28 23:43:29 1998
***************
*** 156,162 ****
register char *p;
p = strsave(fullartfile("in.coming/nspool.XXXXXX"));
- mktemp(p);
return(p);
}
--- 156,161 ----
***************
*** 169,175 ****
{
FILE *f;
! f = fopen(name, "w");
if (f == NULL)
error("unable to create temporary `%s'", name);
if (debug)
--- 168,174 ----
{
FILE *f;
! f = fdopen(mkstemp(name), "w");
if (f == NULL)
error("unable to create temporary `%s'", name);
if (debug)