rand: remove sizeof(uint8_t) because it's always 1

This commit is contained in:
Dmitry Podgorny
2016-01-10 13:05:30 +02:00
parent fc563272fe
commit 5b41247bac

View File

@@ -290,7 +290,7 @@ void xmpp_rand_nonce(xmpp_ctx_t *ctx, char *output, size_t len)
#ifndef _MSC_VER
uint8_t rand_buf[rand_len];
#else
uint8_t* rand_buf = (uint8_t*)_alloca(sizeof(uint8_t) * rand_len);
uint8_t* rand_buf = (uint8_t*)_alloca(rand_len);
#endif
/* current implementation returns printable HEX representation of