X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Ffont2swf.c;h=cd30118109dfccecd09f0ef044ad83fc4feef8c9;hb=8978b24a969f73518ecde87b24d972c7030e91f6;hp=8107a8fbb37c1828badf8277e57ac79f970a798b;hpb=41e559456eae150a5789fef38c3e4be7271e8eda;p=swftools.git diff --git a/src/font2swf.c b/src/font2swf.c index 8107a8f..cd30118 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; @@ -79,7 +79,6 @@ void args_callback_usage(char *name) printf("\n"); printf("-h , --help Print short help message and exit\n"); printf("-v , --verbose Be verbose. Use more than one -v for greater effect.\n"); - printf("-n , --name Name of the font (class) in the output file\n"); printf("-o , --output Write output to file .\n"); printf("-V , --version Print version info and exit\n"); printf("\n"); @@ -101,7 +100,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);