* grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
This commit is contained in:
parent
de1e64eb43
commit
c8f778a044
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
|
||||||
|
|
||||||
2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
|
* grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
|
||||||
|
|
|
@ -555,9 +555,9 @@ regerror (int errcode, const regex_t *_Restrict_ preg,
|
||||||
to this routine. If we are given anything else, or if other regex
|
to this routine. If we are given anything else, or if other regex
|
||||||
code generates an invalid error code, then the program has a bug.
|
code generates an invalid error code, then the program has a bug.
|
||||||
Dump core so we can fix it. */
|
Dump core so we can fix it. */
|
||||||
msg = "unknown regexp error";
|
msg = gettext ("unknown regexp error");
|
||||||
|
else
|
||||||
msg = gettext (__re_error_msgid + __re_error_msgid_idx[errcode]);
|
msg = gettext (__re_error_msgid + __re_error_msgid_idx[errcode]);
|
||||||
|
|
||||||
msg_size = strlen (msg) + 1; /* Includes the null. */
|
msg_size = strlen (msg) + 1; /* Includes the null. */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue