aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/ficsmain.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-07-06 19:04:01 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-07-06 19:04:01 +0200
commit0e3529e3b5c6c2383226f271e51ab50d990b0a1b (patch)
tree2373d90c5fe8a62f003d773f11cdcc391623349f /FICS/ficsmain.c
parentf5aad8fe893db67bdbd641d001d8e5d4792f693b (diff)
Added a new type and replaced sprintf() calls with msnprintf()
Diffstat (limited to 'FICS/ficsmain.c')
-rw-r--r--FICS/ficsmain.c6
1 files changed, 3 insertions, 3 deletions
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);