]> mj.ucw.cz Git - checkmail.git/commitdiff
F.
authorMartin Mares <mj@ucw.cz>
Wed, 25 May 2005 14:08:51 +0000 (14:08 +0000)
committerMartin Mares <mj@ucw.cz>
Wed, 25 May 2005 14:08:51 +0000 (14:08 +0000)
ChangeLog
cm.c

index 03af52626b044871535f2c2dc9c0d0b1f6b97d61..11a22ae94da6458eb2db1d6a74b8987835a318d3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-25  Martin Mares  <mj@ucw.cz>
+
+       * 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  <mj@ucw.cz>
 
        * Replaced the `-h' switch by a general interface for setting options.
diff --git a/cm.c b/cm.c
index 3dd7f57074321495a8b1dd92da1e806b9a401d21..7494d0c4d29e17f867e1256c1b3341c693753ae7 100644 (file)
--- 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