From: dseg Date: Thu, 10 Feb 2005 01:06:01 +0000 (+0000) Subject: On *nix, png2swf couldn't find 'foo.Png' if command line was given as X-Git-Tag: release-0-7-0~231 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=69254744d1f245ff4f5796226c5864e7a7b4276b On *nix, png2swf couldn't find 'foo.Png' if command line was given as 'png2swf foo'. Fixed. --- diff --git a/src/png2swf.c b/src/png2swf.c index 91cfb32..6cf4189 100644 --- a/src/png2swf.c +++ b/src/png2swf.c @@ -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; + } } } }