blob: 67190c4c1d42d4e836102ed7c3c9ac547a51c507 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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. */
}
|