diff options
Diffstat (limited to 'lisp/re/re.c')
-rw-r--r-- | lisp/re/re.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/re/re.c b/lisp/re/re.c index f4c1246..55ba17b 100644 --- a/lisp/re/re.c +++ b/lisp/re/re.c @@ -1665,7 +1665,7 @@ done: int reerror(int ecode, const re_cod *preg, char *ebuffer, int ebuffer_size) { - static char *errors[] = { + static const char *errors[] = { "No error", "Failed to match", /* NOMATCH */ @@ -1687,7 +1687,7 @@ reerror(int ecode, const re_cod *preg, char *ebuffer, int ebuffer_size) "Assertion error - you found a bug", /* ASSERT */ "Invalid argument" /* INVARG */ }; - char *str; + const char *str; if (ecode >= 0 && ecode < sizeof(errors) / sizeof(errors[0])) str = errors[ecode]; |