summaryrefslogtreecommitdiff
path: root/src/syntax.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/syntax.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/syntax.c')
-rw-r--r--src/syntax.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 1eeb9bc8b..961348290 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -8986,7 +8986,7 @@ highlight_changed()
hlcnt = highlight_ga.ga_len;
if (id_S == 0)
{ /* Make sure id_S is always valid to simplify code below */
- memset(&HL_TABLE()[hlcnt + 9], 0, sizeof(struct hl_group));
+ vim_memset(&HL_TABLE()[hlcnt + 9], 0, sizeof(struct hl_group));
HL_TABLE()[hlcnt + 9].sg_term = highlight_attr[HLF_S];
id_S = hlcnt + 10;
}
@@ -9012,7 +9012,7 @@ highlight_changed()
# ifdef FEAT_STL_OPT
if (id_SNC == 0)
{
- memset(&hlt[hlcnt + i], 0, sizeof(struct hl_group));
+ vim_memset(&hlt[hlcnt + i], 0, sizeof(struct hl_group));
hlt[hlcnt + i].sg_term = highlight_attr[HLF_SNC];
hlt[hlcnt + i].sg_cterm = highlight_attr[HLF_SNC];
# ifdef FEAT_GUI