From 16fe055bf14c8fcf6d091293f0894f32bbb33294 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Wed, 11 May 2016 19:34:33 +0000 Subject: Prevent collision with getline(3) --- mail/qconfirm/files/patch-src_qconfirm-notice.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 mail/qconfirm/files/patch-src_qconfirm-notice.c (limited to 'mail/qconfirm/files/patch-src_qconfirm-notice.c') diff --git a/mail/qconfirm/files/patch-src_qconfirm-notice.c b/mail/qconfirm/files/patch-src_qconfirm-notice.c new file mode 100644 index 000000000000..2478812757c2 --- /dev/null +++ b/mail/qconfirm/files/patch-src_qconfirm-notice.c @@ -0,0 +1,11 @@ +--- src/qconfirm-notice.c.orig 2004-12-12 16:57:17 UTC ++++ src/qconfirm-notice.c +@@ -386,7 +386,7 @@ int main(int argc, const char **argv) { + } + + /* check for confirmation request message */ +- while ((i =getline(buffer_0, &sa)) > 0) { ++ while ((i =get_line(buffer_0, &sa)) > 0) { + if ((i == 1) && (sa.s[0] == '\n')) break; /* end of headers */ + if (request && reply_to.s) break; + for (i =0; i < sa.len; ++i) { -- cgit v1.2.3