Fix various bugs related to string handling in printer code:

generic text printer saving output files in the working dir instead of printer subdir;
generic ESC/P printer looking up font files in the wrong directory;
generic PostScript printer saving output PDFs with a double ".ps.pdf" extension.
This commit is contained in:
Alexander Babikov
2021-05-26 17:57:37 +05:00
parent df7efb933d
commit 2fe162dacc
3 changed files with 3 additions and 3 deletions

View File

@@ -145,7 +145,7 @@ convert_to_pdf(ps_t *dev)
strcat(input_fn, dev->filename);
strcpy(output_fn, input_fn);
strcat(output_fn + strlen(output_fn) - 3, ".pdf");
strcpy(output_fn + strlen(output_fn) - 3, ".pdf");
gsargv[0] = "";
gsargv[1] = "-dNOPAUSE";