From: Dirk Lemstra Date: Sun, 29 Apr 2018 19:59:54 +0000 (+0200) Subject: Use double quotes to make the password work on Windows. X-Git-Tag: 7.0.7-29~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e4a1359e151950c135aebbbdff2640071b3f6a2;p=imagemagick Use double quotes to make the password work on Windows. --- diff --git a/coders/pdf.c b/coders/pdf.c index c858836dd..c850b2647 100644 --- a/coders/pdf.c +++ b/coders/pdf.c @@ -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);