summaryrefslogtreecommitdiff
path: root/src/gui_w48.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/gui_w48.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/gui_w48.c')
-rw-r--r--src/gui_w48.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui_w48.c b/src/gui_w48.c
index 2f3673983..6e567f69e 100644
--- a/src/gui_w48.c
+++ b/src/gui_w48.c
@@ -3341,7 +3341,7 @@ gui_mch_browseW(
/* Convert the filter to Windows format. */
filterp = convert_filterW(filter);
- memset(&fileStruct, 0, sizeof(OPENFILENAMEW));
+ vim_memset(&fileStruct, 0, sizeof(OPENFILENAMEW));
#ifdef OPENFILENAME_SIZE_VERSION_400
/* be compatible with Windows NT 4.0 */
/* TODO: what to use for OPENFILENAMEW??? */
@@ -3503,7 +3503,7 @@ gui_mch_browse(
/* Convert the filter to Windows format. */
filterp = convert_filter(filter);
- memset(&fileStruct, 0, sizeof(OPENFILENAME));
+ vim_memset(&fileStruct, 0, sizeof(OPENFILENAME));
#ifdef OPENFILENAME_SIZE_VERSION_400
/* be compatible with Windows NT 4.0 */
fileStruct.lStructSize = OPENFILENAME_SIZE_VERSION_400;
@@ -3842,7 +3842,7 @@ get_cmd_args(char *prog, char *cmdline, char ***argvp, char **tofree)
/* Halve the number of backslashes. */
if (i > 1 && pnew != NULL)
{
- memset(pnew, '\\', i / 2);
+ vim_memset(pnew, '\\', i / 2);
pnew += i / 2;
}
@@ -3859,7 +3859,7 @@ get_cmd_args(char *prog, char *cmdline, char ***argvp, char **tofree)
/* Copy span of backslashes unmodified. */
if (pnew != NULL)
{
- memset(pnew, '\\', i);
+ vim_memset(pnew, '\\', i);
pnew += i;
}
p += i;