0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 7.4.735

Problem:    Wrong argument for sizeof().
Solution:   Use a pointer argument. (Chris Hall)
This commit is contained in:
Bram Moolenaar
2015-06-09 20:30:51 +02:00
parent d009e86826
commit e2e4b98622
2 changed files with 3 additions and 1 deletions

View File

@@ -23164,7 +23164,7 @@ func_dump_profile(fd)
if (todo == 0)
return; /* nothing to dump */
sorttab = (ufunc_T **)alloc((unsigned)(sizeof(ufunc_T) * todo));
sorttab = (ufunc_T **)alloc((unsigned)(sizeof(ufunc_T *) * todo));
for (hi = func_hashtab.ht_array; todo > 0; ++hi)
{