0
0
mirror of https://github.com/vim/vim.git synced 2025-10-28 09:27:14 -04:00

Fix uninit memory read in undo code. Fix uint32_t in proto file.

A few minor changes.
This commit is contained in:
Bram Moolenaar
2010-05-24 11:59:29 +02:00
parent 55debbe384
commit 7db5fc838a
21 changed files with 50 additions and 44 deletions

View File

@@ -542,7 +542,7 @@ bf_ofb_init(iv, iv_len)
int i, mi;
randbyte_offset = update_offset = 0;
memset(ofb_buffer, 0, BF_OFB_LEN);
vim_memset(ofb_buffer, 0, BF_OFB_LEN);
if (iv_len > 0)
{
mi = iv_len > BF_OFB_LEN ? iv_len : BF_OFB_LEN;