changeset 13790:e744943e749c

[gaim-migrate @ 16202] SF Patch #1496688 from coweater "Gaim wasn't removing carriage returns on a yahoo account's away message causing a rather large buddy list entry. The stripping was being done in the code for pre-gtk 2.6.0 but not newer versions. This patch adds that strip for the newer version too." committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Mon, 29 May 2006 17:53:50 +0000
parents 99688ab310c8
children b39a92702939
files src/gtkblist.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkblist.c	Mon May 29 17:18:17 2006 +0000
+++ b/src/gtkblist.c	Mon May 29 17:53:50 2006 +0000
@@ -2938,8 +2938,10 @@
 			g_free(tmp);
 		}
 #else
-		if(tmp)
+		if(tmp) {
 			g_strdelimit(tmp, "\n", ' ');
+			gaim_str_strip_char(tmp, '\r');
+		}
 		statustext = tmp;
 #endif
 	}