diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-28 12:46:19 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-28 12:46:19 +0100 |
commit | 1450a81b3d117c682611d09c1fce626cf501b69b (patch) | |
tree | d352e97e634e52274d0c455d1395d17dc7e17d07 | |
parent | 76ff1b9e76e676b637844269e3737a52100c0c96 (diff) | |
download | rspamd-1450a81b3d117c682611d09c1fce626cf501b69b.tar.gz rspamd-1450a81b3d117c682611d09c1fce626cf501b69b.zip |
Fix uid filling.
-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'; |