]> granicus.if.org Git - vim/commitdiff
patch 7.4.735 v7.4.735
authorBram Moolenaar <Bram@vim.org>
Tue, 9 Jun 2015 18:30:51 +0000 (20:30 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 9 Jun 2015 18:30:51 +0000 (20:30 +0200)
Problem:    Wrong argument for sizeof().
Solution:   Use a pointer argument. (Chris Hall)

src/eval.c
src/version.c

index e0f3218b6e3d58ea9aa4d96fd43c1e8c238d09de..a173cc73a7a154116b0531bec3d144404e80ab9a 100644 (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)
     {
index a21ec5effbb92fd7d6822e4f0709a64f42f2ebd6..f474f068baa7c9dda289ce2328939a5af4794bcd 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    735,
 /**/
     734,
 /**/