kiss-repository

personal kiss repository
git clone git://git.ckyln.com/~cem/kiss-repository.git
Log | Files | Refs | Submodules | README | LICENSE

nvi-26-trailing_tab_segv.patch (670B)


      1 #! /bin/sh /usr/share/dpatch/dpatch-run
      2 ## 26trailing_tab_segv.dpatch by <hesso@pool.math.tu-berlin.de>
      3 ##
      4 ## DP: Prevent a segfault if a trailing tab is pushed to a new line by inserting
      5 ## DP: characters before it if 'set number' is in effect.
      6 
      7 @DPATCH@
      8 --- nvi-1.81.6+debian.orig/vi/vs_relative.c	2007-11-18 17:41:42.000000000 +0100
      9 +++ nvi-1.81.6+debian/vi/vs_relative.c	2008-06-13 03:22:55.000000000 +0200
     10 @@ -133,7 +133,7 @@
     11  	 * Initialize the pointer into the buffer and current offset.
     12  	 */
     13  	p = lp;
     14 -	curoff = 0;
     15 +	curoff = scno;
     16  
     17  	/* Macro to return the display length of any signal character. */
     18  #define	CHLEN(val) (ch = *(UCHAR_T *)p++) == '\t' &&			\