# HG changeset patch # User Kim Alvefur # Date 1507200516 -7200 # Node ID fba1ea67f5c0820511c1ebde6c997d8f5aeffc7b # Parent bd6b189b354c374f3aceba7fc4cc7c51345553c5 util.encodings: Use the 'idx' argument correctly [-Wunused-parameter] diff -r bd6b189b354c -r fba1ea67f5c0 util-src/encodings.c --- a/util-src/encodings.c Wed Oct 04 12:06:18 2017 +0200 +++ b/util-src/encodings.c Thu Oct 05 12:48:36 2017 +0200 @@ -216,7 +216,7 @@ */ const char *check_utf8(lua_State *L, int idx, size_t *l) { size_t pos, len; - const char *s = luaL_checklstring(L, 1, &len); + const char *s = luaL_checklstring(L, idx, &len); pos = 0; while(pos <= len) {