changeset 16910:ba47cfaa013b

Let glib handle quoting filenames for shell, it'll escape other quotes as needed.
author Casey Harkins <charkins@pidgin.im>
date Sat, 05 May 2007 21:20:05 +0000
parents 11a0f2b4ac83
children 0aa5e1e5c937 968941822155
files pidgin/gtksound.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtksound.c	Sat May 05 18:29:49 2007 +0000
+++ b/pidgin/gtksound.c	Sat May 05 21:20:05 2007 +0000
@@ -430,7 +430,7 @@
 			return;
 		}
 
-		esc_filename = g_strdup_printf("'%s'", filename);
+		esc_filename = g_shell_quote(filename);
 
 		if(strstr(sound_cmd, "%s"))
 			command = purple_strreplace(sound_cmd, "%s", esc_filename);