From e2e4b98622f7c44910dc9660035048a4177d3777 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 9 Jun 2015 20:30:51 +0200 Subject: [PATCH] patch 7.4.735 Problem: Wrong argument for sizeof(). Solution: Use a pointer argument. (Chris Hall) --- src/eval.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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, /**/ -- 2.40.0