Karsten Hopp 04c24d
To: vim_dev@googlegroups.com
Karsten Hopp 04c24d
Subject: Patch 7.4.735
Karsten Hopp 04c24d
Fcc: outbox
Karsten Hopp 04c24d
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 04c24d
Mime-Version: 1.0
Karsten Hopp 04c24d
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 04c24d
Content-Transfer-Encoding: 8bit
Karsten Hopp 04c24d
------------
Karsten Hopp 04c24d
Karsten Hopp 04c24d
Patch 7.4.735
Karsten Hopp 04c24d
Problem:    Wrong argument for sizeof().
Karsten Hopp 04c24d
Solution:   Use a pointer argument. (Chris Hall)
Karsten Hopp 04c24d
Files:      src/eval.c
Karsten Hopp 04c24d
Karsten Hopp 04c24d
Karsten Hopp 04c24d
*** ../vim-7.4.734/src/eval.c	2015-05-04 11:10:21.539941849 +0200
Karsten Hopp 04c24d
--- src/eval.c	2015-06-09 20:24:56.219563938 +0200
Karsten Hopp 04c24d
***************
Karsten Hopp 04c24d
*** 23164,23170 ****
Karsten Hopp 04c24d
      if (todo == 0)
Karsten Hopp 04c24d
  	return;     /* nothing to dump */
Karsten Hopp 04c24d
  
Karsten Hopp 04c24d
!     sorttab = (ufunc_T **)alloc((unsigned)(sizeof(ufunc_T) * todo));
Karsten Hopp 04c24d
  
Karsten Hopp 04c24d
      for (hi = func_hashtab.ht_array; todo > 0; ++hi)
Karsten Hopp 04c24d
      {
Karsten Hopp 04c24d
--- 23164,23170 ----
Karsten Hopp 04c24d
      if (todo == 0)
Karsten Hopp 04c24d
  	return;     /* nothing to dump */
Karsten Hopp 04c24d
  
Karsten Hopp 04c24d
!     sorttab = (ufunc_T **)alloc((unsigned)(sizeof(ufunc_T *) * todo));
Karsten Hopp 04c24d
  
Karsten Hopp 04c24d
      for (hi = func_hashtab.ht_array; todo > 0; ++hi)
Karsten Hopp 04c24d
      {
Karsten Hopp 04c24d
*** ../vim-7.4.734/src/version.c	2015-06-09 20:19:57.730732183 +0200
Karsten Hopp 04c24d
--- src/version.c	2015-06-09 20:26:31.098557448 +0200
Karsten Hopp 04c24d
***************
Karsten Hopp 04c24d
*** 743,744 ****
Karsten Hopp 04c24d
--- 743,746 ----
Karsten Hopp 04c24d
  {   /* Add new patch number below this line */
Karsten Hopp 04c24d
+ /**/
Karsten Hopp 04c24d
+     735,
Karsten Hopp 04c24d
  /**/
Karsten Hopp 04c24d
Karsten Hopp 04c24d
-- 
Karsten Hopp 04c24d
From "know your smileys":
Karsten Hopp 04c24d
 +<(:-) The Pope
Karsten Hopp 04c24d
Karsten Hopp 04c24d
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 04c24d
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 04c24d
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 04c24d
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///