X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=filter.c;h=7dcfa329c42392141090b77c9d3928d578affe4f;hb=2f873d3d332a64b9c4087e5fccc8d32bf51b4a05;hp=b9f5963c42c73089a1e13ecaff182859581c743b;hpb=26f81ec9ea56e0b8f413cd2af7a68cfe45ee925a;p=pkg%2Fabook.git 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) {