From 6e8899b3b596f74282d21c75cbb7172bb6f9e086 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sun, 12 Apr 2026 18:27:28 -0400 Subject: Replace bzero() and memset() with smaller memclear(). 7658 bytes free. --- src/irc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/irc.c') diff --git a/src/irc.c b/src/irc.c index 14bef03..f87e9f2 100644 --- a/src/irc.c +++ b/src/irc.c @@ -14,6 +14,7 @@ #include "kgetc.h" #include "streq.h" #include "timers.h" +#include "memclear.h" #ifndef VERSION #define VERSION "?????" @@ -119,7 +120,7 @@ static void do_priv_nick(void) { the compiled code smaller, but it grew by ~50 bytes. avoid. */ static void print_ping_time(char *p) { - extern void calc_ping_time(unsigned int j); + extern void calc_ping_time(char *p); scr_print_active("*** "); scr_print_active(msg_src); @@ -567,7 +568,7 @@ static void parse_msg(void) { if(!*msgbuf) return; msg_cmd = msg_text = msg_src = msg_dest = 0; - memset(msg_args, 0, sizeof(msg_args)); + memclear(msg_args, sizeof(msg_args)); /* first token is either the source (with a :) or a command (without) */ if(*msgbuf == ':') { -- cgit v1.2.3