diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-08 17:07:53 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-03-08 17:07:53 +0000 |
commit | 7d40adf82d014bc25de73708ac5c528dc8115f90 (patch) | |
tree | b25e2f583dfab82544a7162512d0539a5d255819 /src/libutil/str_util.c | |
parent | 5f6528af25f1dff0357f3b8e5b41950744785c98 (diff) | |
download | rspamd-7d40adf82d014bc25de73708ac5c528dc8115f90.tar.gz rspamd-7d40adf82d014bc25de73708ac5c528dc8115f90.zip |
[Minor] Fix string copy
Diffstat (limited to 'src/libutil/str_util.c')
-rw-r--r-- | src/libutil/str_util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c index 69b17fb4f..c111b0a96 100644 --- a/src/libutil/str_util.c +++ b/src/libutil/str_util.c @@ -79,10 +79,12 @@ rspamd_str_lc (gchar *str, guint size) switch (leftover) { case 3: *dest++ = lc_map[(guchar)str[i++]]; + /* falltrough */ case 2: *dest++ = lc_map[(guchar)str[i++]]; + /* falltrough */ case 1: - *dest++ = lc_map[(guchar)str[i]]; + *dest = lc_map[(guchar)str[i]]; } } |