summaryrefslogtreecommitdiff
path: root/src/memfile.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-06-05 17:43:32 +0200
committerBram Moolenaar <Bram@vim.org>2010-06-05 17:43:32 +0200
commit945e2dbb633ed29b697a8d4eea51672e3c11143b (patch)
tree9d91ddcd66538a3f908dd71acb4a6b8ed90cd374 /src/memfile.c
parenta76638f47d157ff4520fcd2917106d51d03a2ad9 (diff)
downloadvim-git-945e2dbb633ed29b697a8d4eea51672e3c11143b.tar.gz
Use full path in undofile(). Updated docs.
Diffstat (limited to 'src/memfile.c')
-rw-r--r--src/memfile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/memfile.c b/src/memfile.c
index bd03e65a6..5412a6145 100644
--- a/src/memfile.c
+++ b/src/memfile.c
@@ -234,7 +234,7 @@ mf_open_file(mfp, fname)
}
/*
- * close a memory file and delete the associated file if 'del_file' is TRUE
+ * Close a memory file and delete the associated file if 'del_file' is TRUE.
*/
void
mf_close(mfp, del_file)
@@ -415,7 +415,8 @@ mf_new(mfp, negative, page_count)
* Init the data to all zero, to avoid reading uninitialized data.
* This also avoids that the passwd file ends up in the swap file!
*/
- (void)vim_memset((char *)(hp->bh_data), 0, (size_t)mfp->mf_page_size);
+ (void)vim_memset((char *)(hp->bh_data), 0,
+ (size_t)mfp->mf_page_size * page_count);
return hp;
}