X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=parse.c;h=b429117dd0fa707149f1215358779ee2badf00bf;hp=23e6c8684349a68a09d6f67e049abd894300c486;hb=617e7d83d14e14e6a520a48e75437211b16c8834;hpb=8e037c67a88cb4680c4391134c578e3b55a80f8a diff --git a/parse.c b/parse.c index 23e6c86..b429117 100644 --- a/parse.c +++ b/parse.c @@ -25,7 +25,6 @@ #include "mutt_crypt.h" #include "url.h" -#include "lib/mem.h" #include "lib/intl.h" #include "lib/str.h" #include "lib/rx.h" @@ -78,7 +77,7 @@ char *mutt_read_rfc822_line (FILE * f, char *line, size_t * linelen) if (*linelen < offset + STRING) { /* grow the buffer */ *linelen += STRING; - mem_realloc (&line, *linelen); + p_realloc(&line, *linelen); buf = line + offset; } } @@ -917,7 +916,7 @@ static char *extract_message_id(const char *s) if ((s = strchr(s, '<')) == NULL || (p = strchr(s, '>')) == NULL) return NULL; - return p_dupstr(s, (p - s)); + return p_dupstr(s, (p - s) + 1); } void mutt_parse_mime_message (CONTEXT * ctx, HEADER * cur)