From: Jaakko Heinonen Date: Wed, 28 May 2003 16:59:50 +0000 (+0000) Subject: pine import filter update X-Git-Tag: upstream/0.6.1~2^2~263 X-Git-Url: https://git.deb.at/w?p=pkg%2Fabook.git;a=commitdiff_plain;h=2f873d3d332a64b9c4087e5fccc8d32bf51b4a05 pine import filter update --- diff --git a/ChangeLog b/ChangeLog index 7183182..401c1cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2002xxxx - updated man page + - pine import filter update 20021008 - options.c rewritten (new mutt style rc file support) diff --git a/filter.c b/filter.c index b9f5963..7dcfa32 100644 --- a/filter.c +++ b/filter.c @@ -856,6 +856,8 @@ html_export_write_tail(FILE *out) * pine addressbook import filter */ +#define PINE_BUF_SIZE 2048 + static void pine_fixbuf(char *buf) { @@ -894,7 +896,7 @@ pine_parse_buf(char *buf) list_item item; char *start = buf; char *end; - char tmp[400]; + char tmp[PINE_BUF_SIZE]; int i, len, last; int pine_conv_table[]= {NICK, NAME, EMAIL, -1, NOTES}; @@ -905,7 +907,7 @@ pine_parse_buf(char *buf) last=1; len = last ? strlen(start) : (int) (end-start); - len = min(len, 400-1); + len = min(len, PINE_BUF_SIZE - 1); if(i < (int)(sizeof(pine_conv_table) / sizeof(*pine_conv_table)) && pine_conv_table[i] >= 0) {