diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-15 17:07:24 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-15 17:07:24 +0100 |
commit | 99e2a7ffa260440922c9756084b7badd73409701 (patch) | |
tree | fcc9014f3f0b6e767d6e5f7fd6c56c0d42cb5897 /src | |
parent | 792ca08bdc8db204968b63c13095bb0e4ab910a8 (diff) | |
download | rspamd-99e2a7ffa260440922c9756084b7badd73409701.tar.gz rspamd-99e2a7ffa260440922c9756084b7badd73409701.zip |
Do not explicitly write \0 when converting to lowercase
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/util.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c index 221637597..a001e5ed2 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 |