diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-05-24 11:59:29 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-05-24 11:59:29 +0200 |
commit | 7db5fc838a7f701e495d41b0ff6a070591c84340 (patch) | |
tree | ac8f061dafa07580e8b6cf3fedcd290a9f43d3ac /src/fileio.c | |
parent | 55debbe38429b81c0ce6e8400aef36812eb151d7 (diff) | |
download | vim-7db5fc838a7f701e495d41b0ff6a070591c84340.zip |
Fix uninit memory read in undo code. Fix uint32_t in proto file.
A few minor changes.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index b7c86af7e..779a0d6a9 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -4328,7 +4328,7 @@ restore_backup: 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); |