File ImageMagick-6.8.8.1-display-stdin.patch of Package ImageMagick.7150

http://trac.imagemagick.org/changeset?reponame=&new=16037%40ImageMagick%2Fbranches%2FImageMagick-6&old=16036%40ImageMagick%2Fbranches%2FImageMagick-6
Index: wand/display.c
===================================================================
--- wand/display.c
+++ wand/display.c
@@ -464,17 +464,5 @@
           option="logo:";
         else
-          {
-            int
-              c;
-
-            c=getc(stdin);
-            if (c == EOF)
-              option="logo:";
-            else
-              {
-                c=ungetc(c,stdin);
-                option="-";
-              }
-          }
+          option="-";
     if (LocaleCompare(option,"(") == 0)
       {
Index: wand/animate.c
===================================================================
--- wand/animate.c
+++ wand/animate.c
@@ -401,17 +401,5 @@
           option="logo:";
         else
-          {
-            int
-              c;
-
-            c=getc(stdin);
-            if (c == EOF)
-              option="logo:";
-            else
-              {
-                c=ungetc(c,stdin);
-                option="-";
-              }
-          }
+          option="-";
     if (LocaleCompare(option,"(") == 0)
       {
openSUSE Build Service is sponsored by