From e1f3f94eaf2f18f4707dc48db9adc541f16d1679 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 3 Jul 2010 18:39:37 +0100 Subject: Fix handling of outgoing CTCP ACTIONs. --- irc_commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'irc_commands.c') diff --git a/irc_commands.c b/irc_commands.c index 0a9b2c61..197a7e6e 100644 --- a/irc_commands.c +++ b/irc_commands.c @@ -296,7 +296,7 @@ static void irc_cmd_privmsg( irc_t *irc, char **cmd ) if( g_strncasecmp( cmd[2], "\001ACTION", 7 ) == 0 ) { cmd[2] += 4; - strcpy( cmd[2], "/me" ); + memcpy( cmd[2], "/me", 3 ); if( cmd[2][strlen(cmd[2])-1] == '\001' ) cmd[2][strlen(cmd[2])-1] = '\0'; } -- cgit v1.2.3