changeset 7937:0dc286295b36

[gaim-migrate @ 8608] Remove some unnecessary stuff. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 27 Dec 2003 01:35:04 +0000
parents b8b83826cc61
children 160547821ea2
files src/protocols/msn/dispatch.c src/protocols/msn/msn.c
diffstat 2 files changed, 2 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- 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."));
 
--- a/src/protocols/msn/msn.c	Sat Dec 27 01:31:10 2003 +0000
+++ b/src/protocols/msn/msn.c	Sat Dec 27 01:35:04 2003 +0000
@@ -464,7 +464,7 @@
 		http_method = TRUE;
 
 		gaim_debug(GAIM_DEBUG_INFO, "msn", "using http method\n");
-		
+
 		server = "gateway.messenger.hotmail.com";
 		port   = 80;
 	}