projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42b8daf
)
vi: fix vda's thinko
author
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 27 Jun 2008 04:06:13 +0000
(
04:06
-0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Fri, 27 Jun 2008 04:06:13 +0000
(
04:06
-0000)
editors/vi.c
patch
|
blob
|
history
diff --git
a/editors/vi.c
b/editors/vi.c
index 1b335d9a1fa537f573486de243eedeb0a68048a5..81baa890f7e080463dbc166545095deb8c230b6e 100644
(file)
--- a/
editors/vi.c
+++ b/
editors/vi.c
@@
-1894,7
+1894,7
@@
static char *text_hole_make(char *p, int size) // at "p", make a 'size' byte hol
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;