Fix buffer overflow http://bugs.gentoo.org/show_bug.cgi?id=338179 --- a/easel/esl_getopts.c +++ b/easel/esl_getopts.c @@ -1270,7 +1270,7 @@ "Arg looks like option? Use %.24s%.24s if you really mean it.", g->opt[opti].name, *ret_optarg); } else - ESL_FAIL(eslESYNTAX, "Option %.24s requires an argument", g->opt[opti].name); + ESL_FAIL(eslESYNTAX, g->errbuf, "Option %.24s requires an argument", g->opt[opti].name); g->optstring = NULL; /* An optchar that takes an arg must terminate an optstring. */ }