From: Matthias Kramm Date: Thu, 2 Apr 2009 14:06:02 +0000 (+0200) Subject: fixed two bugs in font2swf X-Git-Tag: release-0-9-0~28 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=f0f4599a8cc05f18859d2bb8d0afe447f3e00813 fixed two bugs in font2swf --- diff --git a/src/font2swf.c b/src/font2swf.c index 8107a8f..36ac40b 100644 --- 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; - return 0; + return 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->name = fontname; + font->name = strdup(fontname); swf_WriteFont(font, outfile); swf_FontFree(font);