summaryrefslogtreecommitdiff
blob: b9791fa1ca2ea2cbbbb949bd616fb431f3f9d483 (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

--- easel/esl_getopts.c
+++ 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. */
     }