diff options
Diffstat (limited to 'backend/dvi/dvi-document.c')
-rw-r--r-- | backend/dvi/dvi-document.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backend/dvi/dvi-document.c b/backend/dvi/dvi-document.c index c1e7d411..6051b7b1 100644 --- a/backend/dvi/dvi-document.c +++ b/backend/dvi/dvi-document.c @@ -374,11 +374,13 @@ dvi_document_file_exporter_end (EvFileExporter *exporter) gboolean success; DviDocument *dvi_document = DVI_DOCUMENT(exporter); + gchar* quoted_filename = g_shell_quote (dvi_document->context->filename); - command_line = g_strdup_printf ("dvipdfm %s -o %s \"%s\"", /* dvipdfm -s 1,2,.., -o exporter_filename dvi_filename */ + command_line = g_strdup_printf ("dvipdfm %s -o %s %s", /* dvipdfm -s 1,2,.., -o exporter_filename dvi_filename */ dvi_document->exporter_opts->str, dvi_document->exporter_filename, - dvi_document->context->filename); + quoted_filename); + g_free (quoted_filename); success = g_spawn_command_line_sync (command_line, NULL, |