]> git.deb.at Git - pkg/abook.git/commitdiff
pine import filter update
authorJaakko Heinonen <jheinonen@users.sourceforge.net>
Wed, 28 May 2003 16:59:50 +0000 (16:59 +0000)
committerJaakko Heinonen <jheinonen@users.sourceforge.net>
Wed, 28 May 2003 16:59:50 +0000 (16:59 +0000)
ChangeLog
filter.c

index 7183182f698d87eca8ea3af998b0cdd97b10f613..401c1cca789a4b673fc03a8bdff890d36ae39587 100644 (file)
--- 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)
index b9f5963c42c73089a1e13ecaff182859581c743b..7dcfa329c42392141090b77c9d3928d578affe4f 100644 (file)
--- 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) {