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

21 lines
645 B
Plaintext

*** readnews/readnews.c.orig Tue Apr 28 23:49:42 1998
--- readnews/readnews.c Tue Apr 28 23:50:01 1998
***************
*** 840,847 ****
if (s == NULL)
return;
(void) strcpy(tmpf, "/tmp/rfXXXXXX");
! (void) mktemp(tmpf);
! fo = fopen(tmpf, "w");
if (fo == NULL)
error("can't create `%s'", tmpf);
fprintf(fo, "Newsgroups: %s\n", (hp->h_followupto) ? hp->h_followupto :
--- 840,846 ----
if (s == NULL)
return;
(void) strcpy(tmpf, "/tmp/rfXXXXXX");
! fo = fdopen(mkstemp(tmpf), "w");
if (fo == NULL)
error("can't create `%s'", tmpf);
fprintf(fo, "Newsgroups: %s\n", (hp->h_followupto) ? hp->h_followupto :