ImageMagick/ImageMagick-5.5.7-stdin.patch
cvsdist 073e999da3 auto-import changelog data from ImageMagick-5.5.7.15-0.2.src.rpm
Sun Jan 25 2004 Nils Philippsen <nphilipp@redhat.com> 5.5.7.15-0.2
- make perl module link against the built library instead of the installed
    one
Thu Jan 22 2004 Nils Philippsen <nphilipp@redhat.com> 5.5.7.15-0.1
- version 5.5.7 patchlevel 15
Mon Oct 13 2003 Nils Philippsen <nphilipp@redhat.com> 5.5.7.10-0.1
- rebuild with release 0.1 to not block an official update package
Wed Sep 10 2003 Nils Philippsen <nphilipp@redhat.com> 5.5.7.10-2
- hack around libtool stupidity
- disable automake patch as we require automake-1.7 anyway
Wed Sep 10 2003 Nils Philippsen <nphilipp@redhat.com> 5.5.7.10-1
- version 5.5.7 patchlevel 10
2004-09-09 02:37:40 +00:00

31 lines
902 B
Diff

--- ImageMagick-5.5.7/magick/command.c.stdin 2003-09-10 08:59:31.000000000 +0200
+++ ImageMagick-5.5.7/magick/command.c 2003-09-10 09:01:42.000000000 +0200
@@ -4410,7 +4410,8 @@
*client_name,
*option,
*resource_value,
- *server_name;
+ *server_name,
+ c_tmp;
Display
*display;
@@ -4549,7 +4550,16 @@
break;
else
if (!isatty(STDIN_FILENO))
- option=(char *) "-";
+ {
+ c_tmp = getc(stdin);
+ if(c_tmp != EOF)
+ {
+ ungetc(c_tmp, stdin);
+ option=(char *) "-";
+ } else
+ option=(char *) "logo:Untitled";
+ /* option=(char *) "-"; */
+ }
else
option=(char *) "logo:Untitled";
if ((strlen(option) == 1) || ((*option != '-') && (*option != '+')))