pidgin/android/libpurple

d7b8bff10713
Parents 7415482377b5
Children 7e7432c7b0aa
Use G_DIR_SEPARATOR_S instead of hardcoded slashes
--- a/libpurple/protocols/mxit/splashscreen.c Mon Feb 18 17:59:15 2013 -0800
+++ b/libpurple/protocols/mxit/splashscreen.c Mon Feb 18 18:47:11 2013 -0800
@@ -93,7 +93,7 @@
purple_debug_info(MXIT_PLUGIN_ID, "Removing splashId: '%s'\n", splashId);
/* Delete stored splash image */
- filename = g_strdup_printf("%s/mxit/%s.png", purple_user_dir(), splashId);
+ filename = g_strdup_printf("%s" G_DIR_SEPARATOR_S "mxit" G_DIR_SEPARATOR_S "%s.png", purple_user_dir(), splashId);
g_unlink(filename);
g_free(filename);
@@ -179,7 +179,7 @@
purple_debug_info(MXIT_PLUGIN_ID, "Display Splash: '%s'\n", splashId);
/* Load splash-screen image from file */
- filename = g_strdup_printf("%s/mxit/%s.png", purple_user_dir(), splashId);
+ filename = g_strdup_printf("%s" G_DIR_SEPARATOR_S "mxit" G_DIR_SEPARATOR_S "%s.png", purple_user_dir(), splashId);
if (g_file_get_contents(filename, &imgdata, &imglen, NULL)) {
char buf[128];