]> www.fi.muni.cz Git - evince.git/commitdiff
[comics] Correctly quote filename in zipnote command
authorJuanjo Marín <juanj.marin@juntadeandalucia.es>
Thu, 24 Jun 2010 08:16:13 +0000 (10:16 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Thu, 24 Jun 2010 08:19:12 +0000 (10:19 +0200)
See bug #619248.

backend/comics/comics-document.c

index bed6e58180369a31a562c4e8a7a6651168c1c91a..4d74385a9ecb43061340c8a0047454bb5d00fac0 100644 (file)
@@ -252,7 +252,7 @@ static gboolean
 comics_generate_command_lines (ComicsDocument *comics_document, 
                               GError         **error)
 {
-       gchar *quoted_file;
+       gchar *quoted_file, *quoted_file_aux;
        gchar *quoted_command;
        ComicBookDecompressType type;
        
@@ -261,10 +261,12 @@ comics_generate_command_lines (ComicsDocument *comics_document,
        quoted_command = g_shell_quote (comics_document->selected_command);
        if (comics_document->regex_arg) {
                quoted_file = comics_regex_quote (comics_document->archive);
+               quoted_file_aux = g_shell_quote (comics_document->archive);
                comics_document->list_command =
                           g_strdup_printf (command_usage_def[type].list,
                                            comics_document->alternative_command,
-                                           comics_document->archive);
+                                           quoted_file_aux);
+               g_free (quoted_file_aux);
        } else {
                quoted_file = g_shell_quote (comics_document->archive);
                comics_document->list_command =