aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/encodings.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-10-05 12:48:36 +0200
committerKim Alvefur <zash@zash.se>2017-10-05 12:48:36 +0200
commit8956f32a9c6fff30b6f604dba0a1ea0330712be1 (patch)
tree56f73da13189ef12d1d6de98e32d292883bb4ad4 /util-src/encodings.c
parent14d77f86bb64c5d535e5ac92f3b237eefcbd7a98 (diff)
downloadprosody-8956f32a9c6fff30b6f604dba0a1ea0330712be1.tar.gz
prosody-8956f32a9c6fff30b6f604dba0a1ea0330712be1.zip
util.encodings: Use the 'idx' argument correctly [-Wunused-parameter]
Diffstat (limited to 'util-src/encodings.c')
-rw-r--r--util-src/encodings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/encodings.c b/util-src/encodings.c
index 465819d5..d85c7cf6 100644
--- a/util-src/encodings.c
+++ b/util-src/encodings.c
@@ -216,7 +216,7 @@ static const char *utf8_decode(const char *o, int *val) {
*/
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) {