all our memmove() function calls work on char*'s, so we can use the
charmove() macro for them instead
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1554 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
diff --git a/src/winio.c b/src/winio.c
index 8318c31..5334500 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -635,7 +635,7 @@
break;
case NANO_DELETE_KEY:
if (x < xend) {
- memmove(answer + x, answer + x + 1, xend - x);
+ charmove(answer + x, answer + x + 1, xend - x);
xend--;
}
break;
@@ -647,7 +647,7 @@
break;
case NANO_BACKSPACE_KEY:
if (x > 0) {
- memmove(answer + x - 1, answer + x, xend - x + 1);
+ charmove(answer + x - 1, answer + x, xend - x + 1);
x--;
xend--;
}
@@ -791,7 +791,7 @@
if (kbinput < 32 || kbinput == 127)
break;
answer = charealloc(answer, xend + 2);
- memmove(answer + x + 1, answer + x, xend - x + 1);
+ charmove(answer + x + 1, answer + x, xend - x + 1);
xend++;
answer[x] = kbinput;
x++;