summaryrefslogtreecommitdiff
path: root/comms/yaps/files/patch-cv.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-08-01 06:13:41 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-08-01 06:13:41 +0000
commitde43b1e9363a8ec454566e6f4b4e28076288fafa (patch)
tree6db06768fac9e7817ab1296a44073417220f965d /comms/yaps/files/patch-cv.c
parentsecurity/py-pyclamd: 0.2.2 -> 0.3.17 (diff)
Fix collision with getline(3)
Notes
Notes: svn path=/head/; revision=419426
Diffstat (limited to 'comms/yaps/files/patch-cv.c')
-rw-r--r--comms/yaps/files/patch-cv.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/comms/yaps/files/patch-cv.c b/comms/yaps/files/patch-cv.c
new file mode 100644
index 000000000000..22aa4b7a311d
--- /dev/null
+++ b/comms/yaps/files/patch-cv.c
@@ -0,0 +1,11 @@
+--- cv.c.orig 1997-06-03 18:43:52 UTC
++++ cv.c
+@@ -151,7 +151,7 @@ cv_read_table (void *cv, char *fname)
+ MCHK (c);
+ if ((! c) || (! (fp = fopen (fname, "r"))))
+ return -1;
+- while (line = getline (fp, True)) {
++ while (line = get_line (fp, True)) {
+ for (sp = line; isspace (*sp); ++sp)
+ ;
+ if (*sp && (*sp != '#')) {