diff options
author | Igor <f2404@yandex.ru> | 2016-10-11 12:59:34 +0300 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2016-10-11 09:58:06 -0400 |
commit | c0aa47c7a18dbcdf1a2900f251466fdd9c9c4f18 (patch) | |
tree | 41d15302f52cc8cb640ec2816fb8468fd172218b /plugins | |
parent | f38261f666a2e41bbd189940ca7d419b3e726376 (diff) |
fishlim: Fix MEMZERO macro using element number not bytes
Closes #1837
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/fishlim/dh1080.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/fishlim/dh1080.c b/plugins/fishlim/dh1080.c index 41b65844..5afb1c63 100644 --- a/plugins/fishlim/dh1080.c +++ b/plugins/fishlim/dh1080.c @@ -39,7 +39,7 @@ #define DH1080_PRIME_BYTES 135 #define SHA256_DIGEST_LENGTH 32 #define B64ABC "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" -#define MEMZERO(x) memset(x, 0x00, (sizeof(x)/sizeof(*x)) ) +#define MEMZERO(x) memset(x, 0x00, sizeof(x)) /* All clients must use the same prime number to be able to keyx */ static const guchar prime1080[DH1080_PRIME_BYTES] = |