comparison src/memfile.c @ 2249:6d3d35ff2c2b vim73

Use full path in undofile(). Updated docs.
author Bram Moolenaar <bram@vim.org>
date Sat, 05 Jun 2010 17:43:32 +0200
parents 5d5cad78a838
children c08f91142c41
comparison
equal deleted inserted replaced
2248:63157185aea5 2249:6d3d35ff2c2b
232 mfp->mf_dirty = TRUE; 232 mfp->mf_dirty = TRUE;
233 return OK; 233 return OK;
234 } 234 }
235 235
236 /* 236 /*
237 * close a memory file and delete the associated file if 'del_file' is TRUE 237 * Close a memory file and delete the associated file if 'del_file' is TRUE.
238 */ 238 */
239 void 239 void
240 mf_close(mfp, del_file) 240 mf_close(mfp, del_file)
241 memfile_T *mfp; 241 memfile_T *mfp;
242 int del_file; 242 int del_file;
413 413
414 /* 414 /*
415 * Init the data to all zero, to avoid reading uninitialized data. 415 * Init the data to all zero, to avoid reading uninitialized data.
416 * This also avoids that the passwd file ends up in the swap file! 416 * This also avoids that the passwd file ends up in the swap file!
417 */ 417 */
418 (void)vim_memset((char *)(hp->bh_data), 0, (size_t)mfp->mf_page_size); 418 (void)vim_memset((char *)(hp->bh_data), 0,
419 (size_t)mfp->mf_page_size * page_count);
419 420
420 return hp; 421 return hp;
421 } 422 }
422 423
423 /* 424 /*