From: Bram Moolenaar Date: Tue, 9 Jun 2015 18:30:51 +0000 (+0200) Subject: patch 7.4.735 X-Git-Tag: v7.4.735 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2e4b98622f7c44910dc9660035048a4177d3777;p=vim 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 e0f3218b6..a173cc73a 100644 --- a/src/eval.c +++ b/src/eval.c @@ -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) { diff --git a/src/version.c b/src/version.c index a21ec5eff..f474f068b 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 735, /**/ 734, /**/