From: mmj Date: Sat, 3 Jul 2004 06:09:55 +0000 (+1000) Subject: Read header correctly X-Git-Tag: RELEASE_1_0_0~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa8a1aaef2d395fc89d60e5647caadef516eb246;p=thirdparty%2Fmlmmj.git Read header correctly --- diff --git a/src/do_all_the_voodo_here.c b/src/do_all_the_voodo_here.c index b788fab0..79d26536 100644 --- a/src/do_all_the_voodo_here.c +++ b/src/do_all_the_voodo_here.c @@ -68,7 +68,7 @@ void getinfo(const char *line, struct mailhdr *readhdrs) readhdrs[i].values[readhdrs[i].valuecount - 1] = (char *)mymalloc(valuelen + 1); strncpy(readhdrs[i].values[readhdrs[i].valuecount - 1], - line+tokenlen-1, valuelen); + line+tokenlen, valuelen); chomp(readhdrs[i].values[readhdrs[i].valuecount - 1]); } i++;