]> granicus.if.org Git - imagemagick/commitdiff
Use double quotes to make the password work on Windows.
authorDirk Lemstra <dirk@git.imagemagick.org>
Sun, 29 Apr 2018 19:59:54 +0000 (21:59 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sun, 29 Apr 2018 20:00:19 +0000 (22:00 +0200)
coders/pdf.c

index c858836dd9e125dd4ea0948625b6931b1eb8049e..c850b264776c2f280329c5fc060984c5f50ed65b 100644 (file)
@@ -731,7 +731,7 @@ static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception)
         passphrase[MagickPathExtent];
 
       (void) FormatLocaleString(passphrase,MagickPathExtent,
-        "'-sPDFPassword=%s' ",option);
+        "\"-sPDFPassword=%s\" ",option);
       (void) ConcatenateMagickString(options,passphrase,MagickPathExtent);
     }
   read_info=CloneImageInfo(image_info);