diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-08-01 06:13:41 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-08-01 06:13:41 +0000 |
commit | de43b1e9363a8ec454566e6f4b4e28076288fafa (patch) | |
tree | 6db06768fac9e7817ab1296a44073417220f965d /comms/yaps/files/patch-cfg.c | |
parent | security/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-cfg.c')
-rw-r--r-- | comms/yaps/files/patch-cfg.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/comms/yaps/files/patch-cfg.c b/comms/yaps/files/patch-cfg.c new file mode 100644 index 000000000000..e6750f3d31a8 --- /dev/null +++ b/comms/yaps/files/patch-cfg.c @@ -0,0 +1,20 @@ +--- cfg.c.orig 1997-06-11 12:05:34 UTC ++++ cfg.c +@@ -203,7 +203,7 @@ cfg_read (char *fname, void *bp, char *s + fcur -> fp = fp; + fcur -> up = NULL; + while (fcur) { +- while (gline = getline (fcur -> fp, True)) { ++ while (gline = get_line (fcur -> fp, True)) { + for (line = gline; isspace (*line); ++line) + ; + if ((! *line) || (*line == '#')) { +@@ -279,7 +279,7 @@ cfg_read (char *fname, void *bp, char *s + done = False; + siz = 0; + len = 0; +- while (ptr = getline (fcur -> fp, False)) { ++ while (ptr = get_line (fcur -> fp, False)) { + if ((*ptr != '}') || *(ptr + 1)) { + plen = strlen (ptr); + if (len + plen + 2 >= siz) { |