Mercurial > pidgin.yaz
changeset 9769:6be50545eed7
[gaim-migrate @ 10637]
nosnilmot fixed an unlikely occurance
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Tue, 17 Aug 2004 00:50:20 +0000 |
parents | ea1f457b7fef |
children | 41f302d41839 |
files | src/gtkprefs.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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);