commit | 7db5fc838a7f701e495d41b0ff6a070591c84340 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon May 24 11:59:29 2010 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon May 24 11:59:29 2010 +0200 |
tree | ac8f061dafa07580e8b6cf3fedcd290a9f43d3ac | |
parent | 55debbe38429b81c0ce6e8400aef36812eb151d7 [diff] [blame] |
Fix uninit memory read in undo code. Fix uint32_t in proto file. A few minor changes.
diff --git a/src/fileio.c b/src/fileio.c index b7c86af..779a0d6 100644 --- a/src/fileio.c +++ b/src/fileio.c
@@ -4328,7 +4328,7 @@ use_crypt_method = buf->b_p_cm; /* select pkzip or blowfish */ - memset(header, 0, sizeof(header)); + vim_memset(header, 0, sizeof(header)); vim_strncpy(header, (char_u *)crypt_magic[use_crypt_method], CRYPT_MAGIC_LEN);