diff options
-rw-r--r-- | src/libutil/mem_pool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/mem_pool.c b/src/libutil/mem_pool.c index 084b4400b..6e148a0c3 100644 --- a/src/libutil/mem_pool.c +++ b/src/libutil/mem_pool.c @@ -231,7 +231,7 @@ rspamd_mempool_new (gsize size, const gchar *tag) ottery_rand_bytes (uidbuf, sizeof (uidbuf)); for (i = 0; i < G_N_ELEMENTS (uidbuf); i ++) { new->tag.uid[i * 2] = hexdigits[(uidbuf[i] >> 4) & 0xf]; - new->tag.uid[i * 2 + 2] = hexdigits[uidbuf[i] & 0xf]; + new->tag.uid[i * 2 + 1] = hexdigits[uidbuf[i] & 0xf]; } new->tag.uid[19] = '\0'; |