summaryrefslogtreecommitdiff
path: root/src/hardcopy.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-05-24 11:59:29 +0200
committerBram Moolenaar <Bram@vim.org>2010-05-24 11:59:29 +0200
commit7db5fc838a7f701e495d41b0ff6a070591c84340 (patch)
treeac8f061dafa07580e8b6cf3fedcd290a9f43d3ac /src/hardcopy.c
parent55debbe38429b81c0ce6e8400aef36812eb151d7 (diff)
downloadvim-git-7db5fc838a7f701e495d41b0ff6a070591c84340.tar.gz
Fix uninit memory read in undo code. Fix uint32_t in proto file.
A few minor changes.
Diffstat (limited to 'src/hardcopy.c')
-rw-r--r--src/hardcopy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hardcopy.c b/src/hardcopy.c
index 0e7ee4ddd..e70390d44 100644
--- a/src/hardcopy.c
+++ b/src/hardcopy.c
@@ -568,7 +568,7 @@ ex_hardcopy(eap)
int page_line;
int jobsplit;
- memset(&settings, 0, sizeof(prt_settings_T));
+ vim_memset(&settings, 0, sizeof(prt_settings_T));
settings.has_color = TRUE;
# ifdef FEAT_POSTSCRIPT
@@ -691,7 +691,7 @@ ex_hardcopy(eap)
prt_pos_T page_prtpos; /* print position at page start */
int side;
- memset(&page_prtpos, 0, sizeof(prt_pos_T));
+ vim_memset(&page_prtpos, 0, sizeof(prt_pos_T));
page_prtpos.file_line = eap->line1;
prtpos = page_prtpos;