changeset 4480:a4a87d79c67c

[gaim-migrate @ 4755] win32 fix for reading in buddy icon path committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Thu, 30 Jan 2003 21:09:19 +0000
parents 53723b58fe15
children b30b0a02ada0
files src/gaimrc.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gaimrc.c	Thu Jan 30 20:54:48 2003 +0000
+++ b/src/gaimrc.c	Thu Jan 30 21:09:19 2003 +0000
@@ -619,7 +619,17 @@
 	for (i = 0; i < 7; i++)
 		fprintf(f, " { %s }", u->proto_opt[i]);
 	fprintf(f, "\n");
+#ifndef _WIN32
 	fprintf(f, "\t\ticonfile { %s }\n", u->iconfile);
+#else
+	{
+		/* Make sure windows dir speparators arn't swallowed up when
+		   path is read back in from resource file */
+		char* tmp=wgaim_escape_dirsep(u->iconfile);
+		fprintf(f, "\t\ticonfile { %s }\n", tmp);	
+		g_free(tmp);
+	}
+#endif
 	fprintf(f, "\t\talias { %s }\n", u->alias);
 }