]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 20 Oct 2019 16:24:27 +0000 (12:24 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 20 Oct 2019 16:24:44 +0000 (12:24 -0400)
MagickCore/delegate.c

index eb0ba31d1d70e32934df69538d0ce0731f27ad7b..d4b904b5421d9005829c4450a33457e518737cc1 100644 (file)
@@ -452,13 +452,13 @@ MagickExport int ExternalDelegateCommand(const MagickBooleanType asynchronous,
       TODO: This won't work if one of the delegate parameters has a forward
             slash as aparameter.
     */
-    p=strstr(sanitize_command, "cmd.exe /c");
+    p=strstr(sanitize_command,"cmd.exe /c");
     if (p != (char*) NULL)
       {
         p+=10;
-        for (; *p != '\0'; p++)
+        for ( ; *p != '\0'; p++)
           if (*p == '/')
-            *p=*DirectorySeparator;
+            *p=(*DirectorySeparator);
       }
   }
   status=NTSystemCommand(sanitize_command,message);