From: Martin Mares Date: Wed, 25 May 2005 14:08:51 +0000 (+0000) Subject: F. X-Git-Tag: v1.4~40 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=f8fe3ae5b6f46a1f0ad508815a3064db77a0ac4a;p=checkmail.git F. --- diff --git a/ChangeLog b/ChangeLog index 03af526..11a22ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-25 Martin Mares + + * cm.c (add_snippet): Don't forget to terminate the string. Gets rid of + occassional garbage at the end of mail snippets. + 2005-05-23 Martin Mares * Replaced the `-h' switch by a general interface for setting options. diff --git a/cm.c b/cm.c index 3dd7f57..7494d0c 100644 --- a/cm.c +++ b/cm.c @@ -205,6 +205,7 @@ add_snippet(char **ppos, char *term, char *add) while (*add && pos < term) *pos++ = *add++; *ppos = pos; + *pos = 0; } static void