about summary refs log tree commit diff
path: root/converter/ppm
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-08-05 23:47:30 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2022-08-05 23:47:30 +0000
commit7ca8627f6b92d4b40965f38c5b0b0cdee88ebc2c (patch)
treed257936972e266ec67be875ab4bcaa28fd8b8757 /converter/ppm
parent090d9489dfe5a30e7d2d9ecbd9eaaa520a9eae94 (diff)
downloadnetpbm-mirror-7ca8627f6b92d4b40965f38c5b0b0cdee88ebc2c.tar.gz
netpbm-mirror-7ca8627f6b92d4b40965f38c5b0b0cdee88ebc2c.tar.xz
netpbm-mirror-7ca8627f6b92d4b40965f38c5b0b0cdee88ebc2c.zip
Make more robust to weird input file names
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4398 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/ppm')
-rw-r--r--converter/ppm/ppmtompeg/specifics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/ppm/ppmtompeg/specifics.c b/converter/ppm/ppmtompeg/specifics.c
index c8d91b35..bd74e805 100644
--- a/converter/ppm/ppmtompeg/specifics.c
+++ b/converter/ppm/ppmtompeg/specifics.c
@@ -168,7 +168,7 @@ Specifics_Init() {
 
     {
         const char * command;
-        pm_asprintf(&command, "cpp -P %s %s -o %s",
+        pm_asprintf(&command, "cpp -P %s '%s' -o '%s'",
                     specificsDefines, specificsFile, preprocessedFileNm);
         pm_system(NULL, NULL, NULL, NULL, command);
         pm_strfree(command);