From: Vsevolod Stakhov Date: Wed, 15 Apr 2015 16:07:24 +0000 (+0100) Subject: Do not explicitly write \0 when converting to lowercase X-Git-Tag: 0.9.0~236 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99e2a7ffa260440922c9756084b7badd73409701;p=thirdparty%2Frspamd.git Do not explicitly write \0 when converting to lowercase --- diff --git a/src/libutil/util.c b/src/libutil/util.c index 221637597c..a001e5ed2d 100644 --- a/src/libutil/util.c +++ b/src/libutil/util.c @@ -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