svn commit: trunk/busybox/editors

vda at busybox.net vda at busybox.net
Fri Jun 27 04:06:14 UTC 2008


Author: vda
Date: 2008-06-26 21:06:13 -0700 (Thu, 26 Jun 2008)
New Revision: 22529

Log:
vi: fix vda's thinko



Modified:
   trunk/busybox/editors/vi.c


Changeset:
Modified: trunk/busybox/editors/vi.c
===================================================================
--- trunk/busybox/editors/vi.c	2008-06-27 04:01:29 UTC (rev 22528)
+++ trunk/busybox/editors/vi.c	2008-06-27 04:06:13 UTC (rev 22529)
@@ -1894,7 +1894,7 @@
 		p           = new_text + (p           - text);
 		text = new_text;
 	}
-	memmove(p + size, p, end - p);
+	memmove(p + size, p, end - size - p);
 	memset(p, ' ', size);	// clear new hole
 	file_modified++;
 	return p;




More information about the busybox-cvs mailing list