commit | e2e4b98622f7c44910dc9660035048a4177d3777 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Jun 09 20:30:51 2015 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Jun 09 20:30:51 2015 +0200 |
tree | 854dba79a4663828e4dad418e8929fba45bf43a3 | |
parent | d009e8682686a56f7565e6e093a42cd0596e121f [diff] [blame] |
patch 7.4.735 Problem: Wrong argument for sizeof(). Solution: Use a pointer argument. (Chris Hall)
diff --git a/src/eval.c b/src/eval.c index e0f3218..a173cc7 100644 --- a/src/eval.c +++ b/src/eval.c
@@ -23164,7 +23164,7 @@ 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) {