0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

updated for version 7.3.126

Problem:    Compiler warning for signed pointer.
Solution:   Use unsigned int argument for sscanf().
This commit is contained in:
Bram Moolenaar 2011-02-25 14:42:45 +01:00
parent 0065402f9a
commit 2f70a34e2e
2 changed files with 5 additions and 2 deletions

View File

@ -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);

View File

@ -714,6 +714,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
126,
/**/
125,
/**/