From f8fe3ae5b6f46a1f0ad508815a3064db77a0ac4a Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 25 May 2005 14:08:51 +0000 Subject: [PATCH] F. --- ChangeLog | 5 +++++ cm.c | 1 + 2 files changed, 6 insertions(+) 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 -- 2.39.2