diff src/server.c @ 5954:fccc33d4b8fa

[gaim-migrate @ 6398] I made serv_set_info or whatever it's called take a const char * I don't really remember why I also made some other small changes There should be no functionality change I'm still struggling to get available messages working. They haunt my dreams. Like the gray gorilla, or the Silhouette of the past, fading into the dim light of the moon. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 25 Jun 2003 04:20:30 +0000
parents b3c412884a22
children 272c761c52e3
line wrap: on
line diff
--- a/src/server.c	Wed Jun 25 03:40:03 2003 +0000
+++ b/src/server.c	Wed Jun 25 04:20:30 2003 +0000
@@ -147,9 +147,8 @@
 	account = gaim_connection_get_account(gc);
 
 	if (gaim_account_get_user_info(account) != NULL) {
-		/* g_malloc(strlen(gc->user->user_info) * 4);
-		   strncpy_withhtml(buf, gc->user->user_info, strlen(gc->user->user_info) * 4); */
-		serv_set_info(gc, (char *)gaim_account_get_user_info(account));
+		/* buf = strdup_withhtml(gc->user->user_info); */
+		serv_set_info(gc, gaim_account_get_user_info(account));
 		/* g_free(buf); */
 	}
 
@@ -358,7 +357,7 @@
 	}
 }
 
-void serv_set_info(GaimConnection *g, char *info)
+void serv_set_info(GaimConnection *g, const char *info)
 {
 	GaimPluginProtocolInfo *prpl_info = NULL;