git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed a security bug in logging, added basic xml support to as3 compiler
[swftools.git]
/
src
/
font2swf.c
diff --git
a/src/font2swf.c
b/src/font2swf.c
index
8107a8f
..
36ac40b
100644
(file)
--- a/
src/font2swf.c
+++ b/
src/font2swf.c
@@
-56,7
+56,7
@@
int args_callback_option(char*name,char*val)
}
else if(!strcmp(name, "n")) {
fontname = val;
}
else if(!strcmp(name, "n")) {
fontname = val;
- return 0;
+ return 1;
}
else if(!strcmp(name, "a")) {
all = 1;
}
else if(!strcmp(name, "a")) {
all = 1;
@@
-101,7
+101,7
@@
static void convertFont(char*infile, char*outfile)
font = swf_LoadFont(infile);
if(fontname)
font = swf_LoadFont(infile);
if(fontname)
- font->name = fontname;
+ font->name = strdup(fontname);
swf_WriteFont(font, outfile);
swf_FontFree(font);
swf_WriteFont(font, outfile);
swf_FontFree(font);