openbsd-ports/news/newsfetch/patches/patch-util_c
2012-08-06 20:32:22 +00:00

44 lines
1.6 KiB
Plaintext

$OpenBSD: patch-util_c,v 1.3 2012/08/06 20:32:22 naddy Exp $
--- util.c.orig Mon Apr 13 09:47:40 1998
+++ util.c Mon Aug 6 22:24:53 2012
@@ -1,10 +1,12 @@
#include <stdio.h>
+#include <stdlib.h>
#include <sys/types.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
#include <pwd.h>
+#include <string.h>
#include "newsfetch.h"
extern int errno;
@@ -61,16 +63,16 @@ generateProcmailrc(char *homedir, char *rcfile, char *
FILE *fp, *fp1, *fp2;
char *tmp, buf[200], group[180], filterfile[100], procmailrcfile[100];
int i,j;
-char *title="
-
-############### Generated by Newsfetch ##############################
-# New version of Newsfetch is available from #
-# #
-# http://ulf.wep.net/newsfetch.html #
-# Feedback and Comments to Yusuf Motiwala <yusuf@scientist.com> #
-######################################################################
-
-";
+char *title="\n"
+"\n"
+"############### Generated by Newsfetch ##############################\n"
+"# New version of Newsfetch is available from #\n"
+"# #\n"
+"# http://ulf.wep.net/newsfetch.html #\n"
+"# Feedback and Comments to Yusuf Motiwala <yusuf@scientist.com> #\n"
+"######################################################################\n"
+"\n"
+"";
strcpy(filterfile,homedir);
strcat(filterfile,"/");