Software /
code /
prosody
Diff
util-src/encodings.c @ 8291:fba1ea67f5c0
util.encodings: Use the 'idx' argument correctly [-Wunused-parameter]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 05 Oct 2017 12:48:36 +0200 |
parent | 7998:604beb13596a |
child | 9153:26c5a4a14905 |
line wrap: on
line diff
--- 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) {