src/protocols/msn/dispatch.c

changeset 7937
d24de52f762d
parent 7386
9cccb3792018
child 7981
332cd6342bab
--- a/src/protocols/msn/dispatch.c	Sat Dec 27 01:31:10 2003 +0000
+++ b/src/protocols/msn/dispatch.c	Sat Dec 27 01:35:04 2003 +0000
@@ -187,14 +187,7 @@
 	GaimConnection *gc = servconn->session->account->gc;
 
 	if (isdigit(*command))
-	{
-		char buf[4];
-
-		strncpy(buf, command, 4);
-		buf[4] = '\0';
-
-		gaim_connection_error(gc, (char *)msn_error_get_text(atoi(buf)));
-	}
+		gaim_connection_error(gc, msn_error_get_text(atoi(command)));
 	else
 		gaim_connection_error(gc, _("Unable to parse message."));
 

mercurial