openbsd-ports/news/cnews/patches/patch-ae

21 lines
645 B
Plaintext
Raw Normal View History

1998-04-28 23:54:08 -04:00
*** 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 :