On *nix, png2swf couldn't find 'foo.Png' if command line was given as
authordseg <dseg>
Thu, 10 Feb 2005 01:06:01 +0000 (01:06 +0000)
committerdseg <dseg>
Thu, 10 Feb 2005 01:06:01 +0000 (01:06 +0000)
'png2swf foo'.
Fixed.

src/png2swf.c

index 91cfb32..6cf4189 100644 (file)
@@ -746,9 +746,10 @@ int CheckInputFile(char *fname, char **realname)
            sprintf(s, "%s.PNG", fname);
            if ((fi = fopen(s, "rb")) == NULL) {
                sprintf(s, "%s.Png", fname);
-               if ((fi = fopen(s, "rb")) == NULL)
+               if ((fi = fopen(s, "rb")) == NULL) {
                    fprintf(stderr, "Couldn't open %s!\n", fname);
                    return -1;
+               }
            }
        }
     }