diff src/dialogs.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 a4f2aba0848d
children b432fa240263
line wrap: on
line diff
--- a/src/dialogs.c	Wed Jun 25 03:40:03 2003 +0000
+++ b/src/dialogs.c	Wed Jun 25 04:20:30 2003 +0000
@@ -1884,11 +1884,13 @@
 	junk = gtk_text_view_get_text(GTK_TEXT_VIEW(b->text), FALSE);
 
 	if (b->account) {
-		strncpy_withhtml(b->account->user_info, junk, sizeof b->account->user_info);
+		gchar *tmp = strdup_withhtml(junk);
+		gaim_account_set_user_info(b->account, junk);
+		g_free(tmp);
 		gc = b->account->gc;
 
 		if (gc)
-			serv_set_info(gc, b->account->user_info);
+			serv_set_info(gc, gaim_account_get_user_info(b->account));
 	}
 	g_free(junk);
 	destroy_dialog(NULL, b->window);
@@ -5018,13 +5020,13 @@
 	/*
 	 * Set the user info and (possibly) send to the server
 	 */
-        if (b->account) {
-                strncpy(b->account->user_info, tmp, sizeof b->account->user_info);
-                gc = b->account->gc;
-
-                if (gc)
-                        serv_set_info(gc, b->account->user_info);
-        }
+	if (b->account) {
+		gaim_account_set_user_info(b->account, tmp);
+		gc = b->account->gc;
+
+		if (gc)
+			serv_set_info(gc, gaim_account_get_user_info(b->account));
+	}
 
 	g_free(tmp);