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:31:11 +02:00
committed by Douglas Drumond
parent 816660d05f
commit 9c2af3e259
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -23192,7 +23192,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)
{
+2
View File
@@ -756,6 +756,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
735,
/**/
734,
/**/