Karsten Hopp 2dbef6
To: vim-dev@vim.org
Karsten Hopp 2dbef6
Subject: Patch 7.1.159
Karsten Hopp 2dbef6
Fcc: outbox
Karsten Hopp 2dbef6
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 2dbef6
Mime-Version: 1.0
Karsten Hopp 2dbef6
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp 2dbef6
Content-Transfer-Encoding: 8bit
Karsten Hopp 2dbef6
------------
Karsten Hopp 2dbef6
Karsten Hopp 2dbef6
Patch 7.1.159
Karsten Hopp 2dbef6
Problem:    strcpy() has overlapping arguments.
Karsten Hopp 2dbef6
Solution:   Use mch_memmove() instead. (Dominique Pelle)
Karsten Hopp 2dbef6
Files:	    src/ex_cmds.c
Karsten Hopp 2dbef6
Karsten Hopp 2dbef6
Karsten Hopp 2dbef6
*** ../vim-7.1.158/src/ex_cmds.c	Thu Nov  8 20:47:34 2007
Karsten Hopp 2dbef6
--- src/ex_cmds.c	Sun Nov 18 14:11:58 2007
Karsten Hopp 2dbef6
***************
Karsten Hopp 2dbef6
*** 4885,4891 ****
Karsten Hopp 2dbef6
  			    ++line2;
Karsten Hopp 2dbef6
  			    /* move the cursor to the new line, like Vi */
Karsten Hopp 2dbef6
  			    ++curwin->w_cursor.lnum;
Karsten Hopp 2dbef6
! 			    STRCPY(new_start, p1 + 1);	/* copy the rest */
Karsten Hopp 2dbef6
  			    p1 = new_start - 1;
Karsten Hopp 2dbef6
  			}
Karsten Hopp 2dbef6
  		    }
Karsten Hopp 2dbef6
--- 4885,4892 ----
Karsten Hopp 2dbef6
  			    ++line2;
Karsten Hopp 2dbef6
  			    /* move the cursor to the new line, like Vi */
Karsten Hopp 2dbef6
  			    ++curwin->w_cursor.lnum;
Karsten Hopp 2dbef6
! 			    /* copy the rest */
Karsten Hopp 2dbef6
! 			    mch_memmove(new_start, p1 + 1, STRLEN(p1 + 1) + 1);
Karsten Hopp 2dbef6
  			    p1 = new_start - 1;
Karsten Hopp 2dbef6
  			}
Karsten Hopp 2dbef6
  		    }
Karsten Hopp 2dbef6
*** ../vim-7.1.158/src/version.c	Tue Nov 20 17:21:28 2007
Karsten Hopp 2dbef6
--- src/version.c	Tue Nov 20 18:01:45 2007
Karsten Hopp 2dbef6
***************
Karsten Hopp 2dbef6
*** 668,669 ****
Karsten Hopp 2dbef6
--- 668,671 ----
Karsten Hopp 2dbef6
  {   /* Add new patch number below this line */
Karsten Hopp 2dbef6
+ /**/
Karsten Hopp 2dbef6
+     159,
Karsten Hopp 2dbef6
  /**/
Karsten Hopp 2dbef6
Karsten Hopp 2dbef6
-- 
Karsten Hopp 2dbef6
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 2dbef6
125. You begin to wonder how often it REALLY is necessary to get up
Karsten Hopp 2dbef6
     and shower or bathe.
Karsten Hopp 2dbef6
Karsten Hopp 2dbef6
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 2dbef6
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 2dbef6
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 2dbef6
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///