# HG changeset patch # User Luke Schierer # Date 1092703820 0 # Node ID 6be50545eed7557900d3c37ccadb26fe95ba626f # Parent ea1f457b7fef85f3bdba4073aae7a31d4578146a [gaim-migrate @ 10637] nosnilmot fixed an unlikely occurance committer: Tailor Script diff -r ea1f457b7fef -r 6be50545eed7 src/gtkprefs.c --- a/src/gtkprefs.c Tue Aug 17 00:15:22 2004 +0000 +++ b/src/gtkprefs.c Tue Aug 17 00:50:20 2004 +0000 @@ -523,7 +523,7 @@ void theme_install_theme(char *path, char *extn) { #ifndef _WIN32 - gchar *command; + gchar *command, *escaped; #endif gchar *destdir; gchar *tail; @@ -544,7 +544,9 @@ * other platforms, if need be */ if (!g_ascii_strcasecmp(tail, ".gz") || !g_ascii_strcasecmp(tail, ".tgz")) { #ifndef _WIN32 - command = g_strdup_printf("tar > /dev/null xzf \"%s\" -C %s", path, destdir); + escaped = g_shell_quote(path); + command = g_strdup_printf("tar > /dev/null xzf %s -C %s", escaped, destdir); + g_free(escaped); #else if(!wgaim_gz_untar(path, destdir)) { g_free(destdir);