From: Jaakko Heinonen Date: Fri, 23 Jan 2004 07:14:32 +0000 (+0000) Subject: fixed a bug in mutt import filter X-Git-Tag: upstream/0.6.1~2^2~223 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=6e541862e5e10bbc7e71dcafa4ff60f19272c66f;p=pkg%2Fabook.git fixed a bug in mutt import filter --- diff --git a/ChangeLog b/ChangeLog index 7538096..af40f12 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 0.5.2 - five custom fields added + - experimental wide character support + - fixed a crash bug in mutt filter 0.5.1 - sort by field command diff --git a/TODO b/TODO index 7a75905..5caa798 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,3 @@ - new file format (xml?) - custom views, keybindings - - utf-8 support diff --git a/filter.c b/filter.c index 5fdec62..9f57ee9 100644 --- a/filter.c +++ b/filter.c @@ -646,7 +646,7 @@ mutt_read_line(FILE *in, char **alias, char **rest) } strncpy(*alias, tmp, ptr - tmp - 1); - *(*alias + (ptr - tmp)) = 0; + *(*alias + (ptr - tmp - 1)) = 0; while(ISSPACE(*ptr)) ptr++;