Fix stupid typo
authorColin Leroy <colin@colino.net>
Fri, 6 Jun 2014 16:29:35 +0000 (18:29 +0200)
committerColin Leroy <colin@colino.net>
Fri, 6 Jun 2014 16:29:35 +0000 (18:29 +0200)
src/plugins/bogofilter/bogofilter.c

index f97d69a..d5e6076 100644 (file)
@@ -264,7 +264,7 @@ static void bogofilter_do_filter(BogoFilterData *data)
                                } else {
                                        gchar **parts = NULL;
 
-                                       buf[sizeof(buf - 1)] = '\0';
+                                       buf[sizeof(buf) - 1] = '\0';
                                        if (strchr(buf, '/')) {
                                                tmp = strrchr(buf, '/')+1;
                                        } else {