diff --git a/src/private.c b/src/private.c index 888a139..1d540b0 100644 --- a/src/private.c +++ b/src/private.c @@ -198,8 +198,8 @@ void igloo_private__vsnprintf(char *str, size_t size, const char *format, va_lis } else { *(str++) = '\\'; *(str++) = 'x'; - *(str++) = hextable[(*arg >> 0) & 0x0F]; *(str++) = hextable[(*arg >> 4) & 0x0F]; + *(str++) = hextable[(*arg >> 0) & 0x0F]; /* Also count the additional chars for string size and block length */ size -= 3; block_len -= 3;