aboutsummaryrefslogtreecommitdiff
path: root/src/edbox.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-04-12 18:27:28 -0400
committerB. Watson <urchlay@slackware.uk>2026-04-12 18:27:40 -0400
commit6e8899b3b596f74282d21c75cbb7172bb6f9e086 (patch)
treec4cb9066a314234e1f05a1f96e9819a105da76a2 /src/edbox.c
parentaa82c562dbbbdabac2acc43d5002bfe8b46ca646 (diff)
downloadfujinet-chat-6e8899b3b596f74282d21c75cbb7172bb6f9e086.tar.gz
Replace bzero() and memset() with smaller memclear(). 7658 bytes free.
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;
}