Software /
code /
prosody
Changeset
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 |
parents | 8289:bd6b189b354c |
children | 8292:2fc8b83dd736 |
files | util-src/encodings.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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) {