From 0e3529e3b5c6c2383226f271e51ab50d990b0a1b Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 6 Jul 2024 19:04:01 +0200 Subject: Added a new type and replaced sprintf() calls with msnprintf() --- FICS/ficsmain.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'FICS/ficsmain.c') diff --git a/FICS/ficsmain.c b/FICS/ficsmain.c index 71c11b4..e9a2783 100644 --- a/FICS/ficsmain.c +++ b/FICS/ficsmain.c @@ -111,11 +111,11 @@ TerminateServer(int sig) PRIVATE void main_event_loop(void) { - char command_string[MAX_STRING_LENGTH]; - int sockfd = -1; + comstr_t str; + int sockfd = -1; while (1) { - ngc2(command_string, HEARTBEATTIME); + ngc2(&str, HEARTBEATTIME); if (process_heartbeat(&sockfd) == COM_LOGOUT && sockfd != -1) { process_disconnection(sockfd); -- cgit v1.2.3