X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fargs.h;h=cc9a58d3f300142bbb7f738126de510171f77b61;hb=b3cb08e1a951aa2bb80d9c0df0a0e6c1d715ca64;hp=0e99360d52088afcb13f6d937e24951eea7f25fd;hpb=843ff64cdad227d56714c268244a60f517351973;p=swftools.git diff --git a/lib/args.h b/lib/args.h index 0e99360..cc9a58d 100644 --- a/lib/args.h +++ b/lib/args.h @@ -66,7 +66,7 @@ struct options_t char*longoption; }; -int args_long2shortoption(options_t*options, char*name, char*val) +int args_long2shortoption(struct options_t*options, char*name, char*val) { char*equal = strchr(name,'='); if (equal) { @@ -79,7 +79,9 @@ int args_long2shortoption(options_t*options, char*name, char*val) +(equal?strlen(equal)+2:2)); strcpy(tmp, options->shortoption); if(equal) { - strcpy(&tmp[strlen(tmp)], equal); + //strcpy(&tmp[strlen(tmp)], equal); + int ret = args_callback_option(tmp, equal); + return 0; } return args_callback_option(tmp,val); }