mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
This commit is contained in:
1 parent
de1e64eb43
commit
c8f778a044
2 files changed
+7
-3
No files matched your search
@@ -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
|
||||
code generates an invalid error code, then the program has a bug.
|
||||
Dump core so we can fix it. */
|
||||
msg = "unknown regexp error";
|
||||
|
||||
msg = gettext (__re_error_msgid + __re_error_msgid_idx[errcode]);
|
||||
msg = gettext ("unknown regexp error");
|
||||
else
|
||||
msg = gettext (__re_error_msgid + __re_error_msgid_idx[errcode]);
|
||||
|
||||
msg_size = strlen (msg) + 1; /* Includes the null. */
|
||||
|
||||
|
||||
Reference in new issue
Block a user