]> granicus.if.org Git - imagemagick/commitdiff
Check for command line options
authorCristy <urban-warrior@imagemagick.org>
Sun, 10 Sep 2017 15:18:26 +0000 (11:18 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 10 Sep 2017 15:18:26 +0000 (11:18 -0400)
MagickWand/animate.c
MagickWand/display.c
MagickWand/import.c

index 15e4111e5e8a20a7dbc19439e389851ccd70bda9..888bbfdf099210de073fe0812877f668cd39cb75 100644 (file)
@@ -344,6 +344,8 @@ WandExport MagickBooleanType AnimateImageCommand(ImageInfo *image_info,
       Check command line for server name.
     */
     option=argv[i];
+    if (IsCommandOption(option) == MagickFalse)
+      continue;
     if (LocaleCompare("display",option+1) == 0)
       {
         /*
index 72526a1668cbc67c9e325f95e986c4f07afeff9c..255c3122d9eed2623ef554f94b5de68a4e601214 100644 (file)
@@ -404,6 +404,8 @@ WandExport MagickBooleanType DisplayImageCommand(ImageInfo *image_info,
       Check command line for server name.
     */
     option=argv[i];
+    if (IsCommandOption(option) == MagickFalse)
+      continue;
     if (LocaleCompare("display",option+1) == 0)
       {
         /*
index b28c7a58d37cb2351ad9773e46080fe34695b8fb..fa4e451ff1d3055d52e7228e8c68e79b2defcab2 100644 (file)
@@ -334,6 +334,8 @@ WandExport MagickBooleanType ImportImageCommand(ImageInfo *image_info,
       Check command line for server name.
     */
     option=argv[i];
+    if (IsCommandOption(option) == MagickFalse)
+      continue;
     if (LocaleCompare("display",option+1) == 0)
       {
         /*