diff options
Diffstat (limited to 'src/blowfish.c')
-rw-r--r-- | src/blowfish.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/blowfish.c b/src/blowfish.c index ff84ccceb..573a1da48 100644 --- a/src/blowfish.c +++ b/src/blowfish.c @@ -413,6 +413,7 @@ bf_key_init(password, salt, salt_len) int salt_len; { int i, j, keypos = 0; + unsigned u; UINT32_T val, data_l, data_r; char_u *key; int keylen; @@ -432,8 +433,8 @@ bf_key_init(password, salt, salt_len) } for (i = 0; i < keylen; i++) { - sscanf((char *)&key[i * 2], "%2x", &j); - key[i] = j; + sscanf((char *)&key[i * 2], "%2x", &u); + key[i] = u; } mch_memmove(sbx, sbi, 4 * 4 * 256); |