Karsten Hopp c62510
To: vim-dev@vim.org
Karsten Hopp c62510
Subject: Patch 7.2.056
Karsten Hopp c62510
Fcc: outbox
Karsten Hopp c62510
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp c62510
Mime-Version: 1.0
Karsten Hopp c62510
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp c62510
Content-Transfer-Encoding: 8bit
Karsten Hopp c62510
------------
Karsten Hopp c62510
Karsten Hopp c62510
Patch 7.2.056 (after 7.2.050)
Karsten Hopp c62510
Problem:    Tests 58 and 59 fail.
Karsten Hopp c62510
Solution:   Don't invoke fwrite() with a zero length. (Dominique Pelle)
Karsten Hopp c62510
Files:	    src/spell.c
Karsten Hopp c62510
Karsten Hopp c62510
Karsten Hopp c62510
*** ../vim-7.2.055/src/spell.c	Fri Nov 28 21:26:50 2008
Karsten Hopp c62510
--- src/spell.c	Sat Nov 29 19:58:21 2008
Karsten Hopp c62510
***************
Karsten Hopp c62510
*** 8112,8118 ****
Karsten Hopp c62510
  		p = rr == 1 ? ftp->ft_from : ftp->ft_to;
Karsten Hopp c62510
  		l = (int)STRLEN(p);
Karsten Hopp c62510
  		putc(l, fd);
Karsten Hopp c62510
! 		fwv &= fwrite(p, l, (size_t)1, fd);
Karsten Hopp c62510
  	    }
Karsten Hopp c62510
  	}
Karsten Hopp c62510
  
Karsten Hopp c62510
--- 8218,8225 ----
Karsten Hopp c62510
  		p = rr == 1 ? ftp->ft_from : ftp->ft_to;
Karsten Hopp c62510
  		l = (int)STRLEN(p);
Karsten Hopp c62510
  		putc(l, fd);
Karsten Hopp c62510
! 		if (l > 0)
Karsten Hopp c62510
! 		    fwv &= fwrite(p, l, (size_t)1, fd);
Karsten Hopp c62510
  	    }
Karsten Hopp c62510
  	}
Karsten Hopp c62510
  
Karsten Hopp c62510
*** ../vim-7.2.055/src/version.c	Fri Nov 28 21:26:50 2008
Karsten Hopp c62510
--- src/version.c	Sat Nov 29 20:10:05 2008
Karsten Hopp c62510
***************
Karsten Hopp c62510
*** 678,679 ****
Karsten Hopp c62510
--- 678,681 ----
Karsten Hopp c62510
  {   /* Add new patch number below this line */
Karsten Hopp c62510
+ /**/
Karsten Hopp c62510
+     56,
Karsten Hopp c62510
  /**/
Karsten Hopp c62510
Karsten Hopp c62510
-- 
Karsten Hopp c62510
GUARD #1:  Where'd you get the coconut?
Karsten Hopp c62510
ARTHUR:    We found them.
Karsten Hopp c62510
GUARD #1:  Found them?  In Mercea?  The coconut's tropical!
Karsten Hopp c62510
ARTHUR:    What do you mean?
Karsten Hopp c62510
GUARD #1:  Well, this is a temperate zone.
Karsten Hopp c62510
                                  The Quest for the Holy Grail (Monty Python)
Karsten Hopp c62510
Karsten Hopp c62510
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp c62510
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp c62510
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp c62510
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///