From: Rocco Rutte Date: Mon, 2 Jun 2008 07:44:44 +0000 (+0200) Subject: Allow for mail addresses longer than 256 characters (closes #3066). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=500ceddfa7d7f9665c1709376024ff502cd0a722;p=neomutt Allow for mail addresses longer than 256 characters (closes #3066). --- diff --git a/ChangeLog b/ChangeLog index 3a489f9dc..599bd2248 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2008-05-30 16:14 +0200 Rocco Rutte (2f59be26ad22) + + * protos.h: Define prototypes for compatibility functions in protos.h + to silence compiler warnings + +2008-05-29 14:18 +0200 Rocco Rutte (bf74c85070c4) + + * ChangeLog, menu.c: Respect $wrap_search in generic menu search (e.g. + for browser) + 2008-05-29 11:20 +0200 Rocco Rutte (18e7849e4c7c) * doc/Makefile.am: Only install mutt_dotlock(1) if binary is diff --git a/rfc822.c b/rfc822.c index 4500e67da..bc1695801 100644 --- a/rfc822.c +++ b/rfc822.c @@ -33,7 +33,7 @@ #define FREE(x) safe_free(x) #define ISSPACE isspace #define strfcpy(a,b,c) {if (c) {strncpy(a,b,c);a[c-1]=0;}} -#define STRING 128 +#define LONG_STRING 1024 #include "rfc822.h" #endif @@ -256,7 +256,7 @@ parse_route_addr (const char *s, char *comment, size_t *commentlen, size_t commentmax, ADDRESS *addr) { - char token[STRING]; + char token[LONG_STRING]; size_t tokenlen = 0; SKIPWS (s); @@ -304,7 +304,7 @@ parse_addr_spec (const char *s, char *comment, size_t *commentlen, size_t commentmax, ADDRESS *addr) { - char token[STRING]; + char token[LONG_STRING]; size_t tokenlen = 0; s = parse_address (s, token, &tokenlen, sizeof (token) - 1, comment, commentlen, commentmax, addr); @@ -339,7 +339,7 @@ ADDRESS *rfc822_parse_adrlist (ADDRESS *top, const char *s) { int ws_pending, nl; const char *begin, *ps; - char comment[STRING], phrase[STRING]; + char comment[LONG_STRING], phrase[LONG_STRING]; size_t phraselen = 0, commentlen = 0; ADDRESS *cur, *last = NULL;