aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-06-24 14:10:41 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-06-24 14:10:41 +0000
commit70685bd022855c858682c51da95a07336505536d (patch)
treeb6f82e795ebd2e6941739109b59b7fe1afb75a82
parent5ec6132c9884f1f6ccbcc8277cb73220462a2133 (diff)
downloadbusybox-w32-70685bd022855c858682c51da95a07336505536d.tar.gz
busybox-w32-70685bd022855c858682c51da95a07336505536d.tar.bz2
busybox-w32-70685bd022855c858682c51da95a07336505536d.zip
vi: fix yet another vda's thinko
-rw-r--r--editors/vi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/editors/vi.c b/editors/vi.c
index f2f1fecde..1b335d9a1 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -1894,6 +1894,7 @@ static char *text_hole_make(char *p, int size) // at "p", make a 'size' byte hol
1894 p = new_text + (p - text); 1894 p = new_text + (p - text);
1895 text = new_text; 1895 text = new_text;
1896 } 1896 }
1897 memmove(p + size, p, end - p);
1897 memset(p, ' ', size); // clear new hole 1898 memset(p, ' ', size); // clear new hole
1898 file_modified++; 1899 file_modified++;
1899 return p; 1900 return p;