# HG changeset patch # User Herman Bloggs # Date 1043960959 0 # Node ID a4a87d79c67c3fdbf89a6906956e9a6e977e8080 # Parent 53723b58fe15b93fab7ee79941b1b11148a10a48 [gaim-migrate @ 4755] win32 fix for reading in buddy icon path committer: Tailor Script diff -r 53723b58fe15 -r a4a87d79c67c src/gaimrc.c --- 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); }