You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
540 B
16 lines
540 B
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. */
|
|
}
|