]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Do not explicitly write \0 when converting to lowercase
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 15 Apr 2015 16:07:24 +0000 (17:07 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 15 Apr 2015 16:07:24 +0000 (17:07 +0100)
src/libutil/util.c

index 221637597ca9772c7c9d107a13dba0f0ce91a1c5..a001e5ed2dacaafb89edce8003415ebcc58e9e3d 100644 (file)
@@ -720,8 +720,6 @@ rspamd_str_lc (gchar *str, guint size)
                *dest++ = lc_map[(guchar)str[i++]];
        case 1:
                *dest++ = lc_map[(guchar)str[i]];
-       case 0:
-               *dest = '\0';
        }
 
 }
@@ -766,8 +764,6 @@ rspamd_str_lc_utf8 (gchar *str, guint size)
                s = p;
                d += r;
        }
-
-       *d = '\0';
 }
 
 #ifndef HAVE_SETPROCTITLE