]> granicus.if.org Git - mutt/commitdiff
Put a zero byte into the string, not into the pointer.
authorLuke Mewburn <luke@mewburn.net>
Sun, 1 Feb 2004 17:50:43 +0000 (17:50 +0000)
committerLuke Mewburn <luke@mewburn.net>
Sun, 1 Feb 2004 17:50:43 +0000 (17:50 +0000)
buffy.c

diff --git a/buffy.c b/buffy.c
index 8830931ca8c5a489102b082b512fdfee8ecf279d..7f24b7c2bc3f34c5028863fcf027c8c95e257389 100644 (file)
--- a/buffy.c
+++ b/buffy.c
@@ -506,7 +506,7 @@ void mutt_buffy (char *s, size_t slen)
   {
   case 0:
 
-    s = '\0';
+    *s = '\0';
     break;
 
   case 1:
@@ -515,7 +515,7 @@ void mutt_buffy (char *s, size_t slen)
       tmp = tmp->next;
     if (!tmp)
     {
-      s = '\0';
+      *s = '\0';
       mutt_buffy_check (1); /* buffy was wrong - resync things */
       break;
     }
@@ -541,7 +541,7 @@ void mutt_buffy (char *s, size_t slen)
     }
     if (count >= 3)
     {
-      s = '\0';
+      *s = '\0';
       mutt_buffy_check (1); /* buffy was wrong - resync things */
       break;
     }