X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=init.c;h=e40c93748fb3d45d4528b089710177bceb34a35e;hp=21bdd4f255773d36d7a38fa66c6f712797a8ac92;hb=23976263ea635d42933503805f9eca006ae24daf;hpb=f3cbb9f51357972f6e74244494236a41dc4d84cd diff --git a/init.c b/init.c index 21bdd4f..e40c937 100644 --- a/init.c +++ b/init.c @@ -499,7 +499,7 @@ static void addr_to_string (char* dst, ssize_t dstlen, struct option_t* option) { char s[HUGE_STRING]; s[0] = '\0'; - rfc822_write_address (s, sizeof(s), *((address_t**) option->data), 0); + rfc822_addrcat(s, sizeof(s), *((address_t**) option->data), 0); snprintf (dst, dstlen, "%s=\"%s\"", option->option, NONULL (s)); } @@ -2302,8 +2302,7 @@ int mutt_var_value_complete (char *buffer, ssize_t len, int pos) mutt_pretty_mailbox (tmp); } else if (DTYPE (option->type) == DT_ADDR) { - rfc822_write_address (tmp, sizeof(tmp), - *((address_t **) option->data), 0); + rfc822_addrcat(tmp, sizeof(tmp), *((address_t **) option->data), 0); } else if (DTYPE (option->type) == DT_QUAD) m_strcpy(tmp, sizeof(tmp), vals[quadoption(option->data)]); @@ -2406,7 +2405,7 @@ int mutt_query_variables (string_list_t * queries) static int mutt_execute_commands (string_list_t * p) { BUFFER err, token; - char errstr[SHORT_STRING]; + char errstr[STRING]; p_clear(&err, 1); err.data = errstr;