aboutsummaryrefslogtreecommitdiff
path: root/src/edbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/edbox.c')
-rw-r--r--src/edbox.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/edbox.c b/src/edbox.c
index a82c3ee..7f232fd 100644
--- a/src/edbox.c
+++ b/src/edbox.c
@@ -6,6 +6,7 @@
#include "complete.h"
#include "keytab.h"
#include "irc.h"
+#include "memclear.h"
/* private API stuff (not in edbox.h) that's been rewritten in asm. */
void hide_cursor(void);
@@ -131,7 +132,7 @@ static void del_to_start(void) {
if(!edbox_pos) return;
memmove(edit_box, edit_box + edbox_pos, EDBOX_MAXPOS - edbox_pos);
edbox_len -= edbox_pos;
- bzero(edit_box + edbox_len, EDBOX_MAXPOS - edbox_len);
+ memclear(edit_box + edbox_len, EDBOX_MAXPOS - edbox_len);
edbox_pos = 0;
}