git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
setu30string now takes a len argument
[swftools.git]
/
src
/
jpeg2swf.c
diff --git
a/src/jpeg2swf.c
b/src/jpeg2swf.c
index
544e7c9
..
b53958a
100644
(file)
--- a/
src/jpeg2swf.c
+++ b/
src/jpeg2swf.c
@@
-136,6
+136,9
@@
int MovieFinish(SWF * swf, TAG * t, char *sname)
sname = "output.swf";
handle = open(sname, O_BINARY | O_RDWR | O_CREAT | O_TRUNC, 0666);
}
+ if(handle<0 && sname) {
+ perror(sname);
+ }
if (swf_WriteSWF(handle, swf)<0)
fprintf(stderr, "Unable to write output file: %s\n", sname);