diff options
Diffstat (limited to 'src/libutil/printf.c')
-rw-r--r-- | src/libutil/printf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/printf.c b/src/libutil/printf.c index a0b75f5bd..10dc899ba 100644 --- a/src/libutil/printf.c +++ b/src/libutil/printf.c @@ -602,9 +602,9 @@ rspamd_vprintf_common (rspamd_printf_append_func func, gchar hexbuf[2]; while (slen) { - hexbuf[0] = hex == 2 ? _HEX[*p & 0xf] : _hex[*p & 0xf]; - hexbuf[1] = hex == 2 ? _HEX[(*p >> 4) & 0xf] : - _hex[(*p >> 4) & 0xf]; + hexbuf[0] = hex == 2 ? _HEX[(*p >> 4) & 0xf] : + _hex[(*p >> 4) & 0xf]; + hexbuf[1] = hex == 2 ? _HEX[*p & 0xf] : _hex[*p & 0xf]; RSPAMD_PRINTF_APPEND_BUF (hexbuf, 2); p++; slen--; |