changeset 2228:07c6d1d3e3fd

[gaim-migrate @ 2238] fix importing blt's that are dos-ified. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 06 Sep 2001 22:08:39 +0000
parents a93a6fe22330
children b5ad79ad917b
files src/dialogs.c src/util.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Thu Sep 06 20:46:06 2001 +0000
+++ b/src/dialogs.c	Thu Sep 06 22:08:39 2001 +0000
@@ -2945,7 +2945,7 @@
         fgets(first, 64, f);
 
 	/* AIM 4 buddy list */
-	if (!g_strcasecmp(first, "Config {\n")) {
+	if (!g_strncasecmp(first, "Config {", strlen("Config {"))) {
 		debug_printf("aim 4\n");
 		rewind(f);
 		translate_blt (f, buf);
--- a/src/util.c	Thu Sep 06 20:46:06 2001 +0000
+++ b/src/util.c	Thu Sep 06 22:08:39 2001 +0000
@@ -1016,7 +1016,8 @@
 				buddy = remove_spaces(line);
 				strcat(dest, "b ");
 				if (strchr(buddy, '\"') != NULL) {
-					strncat(dest, &buddy[1], strlen(buddy) - 3);
+					buddy++;
+					strncat(dest, buddy, strchr(buddy, '\"') - buddy);
 					strcat(dest, "\n");
 				} else
 					strcat(dest, buddy);