diff --git a/src/lj_clib.c b/src/lj_clib.c index 4e345058..283b6e42 100644 --- a/src/lj_clib.c +++ b/src/lj_clib.c @@ -81,7 +81,7 @@ static const char *clib_extname(lua_State *L, const char *name) /* Check for a recognized ld script line. */ static const char *clib_check_lds(lua_State *L, const char *buf) { - char *p, *e; + const char *p, *e; if ((!strncmp(buf, "GROUP", 5) || !strncmp(buf, "INPUT", 5)) && (p = strchr(buf, '('))) { while (*++p == ' ') ;