summaryrefslogtreecommitdiff
path: root/libspectre
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2009-09-11 11:49:02 +0200
committerCarlos Garcia Campos <carlosgc@gnome.org>2009-09-11 11:49:02 +0200
commit077182e1fe53131d7c88cc1a0f278403e60bdc32 (patch)
tree2fd1e0fb9b5a521621b1b80ad023ca0a54e92680 /libspectre
parent0956b7efc4bec37fd8483e1fac0b710c66bd42cb (diff)
Add missing first argument in exporter pdf
Diffstat (limited to 'libspectre')
-rw-r--r--libspectre/spectre-exporter-pdf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libspectre/spectre-exporter-pdf.c b/libspectre/spectre-exporter-pdf.c
index f690aa9..f4df1d5 100644
--- a/libspectre/spectre-exporter-pdf.c
+++ b/libspectre/spectre-exporter-pdf.c
@@ -27,7 +27,7 @@ static SpectreStatus
spectre_exporter_pdf_begin (SpectreExporter *exporter,
const char *filename)
{
- char *args[8];
+ char *args[9];
int arg = 0;
char *output_file;
@@ -40,6 +40,7 @@ spectre_exporter_pdf_begin (SpectreExporter *exporter,
return SPECTRE_STATUS_EXPORTER_ERROR;
}
+ args[arg++] = "libspectre"; /* This value doesn't really matter */
args[arg++] = "-dMaxBitmap=10000000";
args[arg++] = "-dBATCH";
args[arg++] = "-dNOPAUSE";
@@ -50,7 +51,7 @@ spectre_exporter_pdf_begin (SpectreExporter *exporter,
args[arg++] = "-c";
args[arg++] = ".setpdfwrite";
- if (!spectre_gs_run (exporter->gs, 8, args)) {
+ if (!spectre_gs_run (exporter->gs, 9, args)) {
free (output_file);
spectre_gs_free (exporter->gs);
exporter->gs = NULL;