src/irc.c
changeset 49 59b09b0aeb96
parent 48 34094173351c
child 50 412ac658eb97
--- a/src/irc.c
+++ b/src/irc.c
@@ -259,7 +259,7 @@
                         *ptr = '\0';
 
                     message->channel = strtok (message->line, " ");
-                    strncpy (message->current_channel, message->channel, sizeof (message->current_channel));
+                    safe_strncpy (message->current_channel, message->channel, sizeof (message->current_channel));
                     message->line = strtok (NULL, "\r\n");
                     message->line++;
                     printf ("%10s %s %s :%s\n", "READ", message->command, message->channel, message->line);