aboutsummaryrefslogtreecommitdiffstats
path: root/util-src
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-10-05 18:06:04 +0200
committerKim Alvefur <zash@zash.se>2017-10-05 18:06:04 +0200
commit5c1f8cfc4bb5558cff767fbc4b81a10903c91543 (patch)
tree691fe346b53e4d17c388e45cd54dd15bf8f6bb06 /util-src
parent2b7c24b6417aa509fb4f8360d503a24ad6cf5b46 (diff)
parentce996cdb1cdc4c5331332df525b9d181c8fc0c4e (diff)
downloadprosody-5c1f8cfc4bb5558cff767fbc4b81a10903c91543.tar.gz
prosody-5c1f8cfc4bb5558cff767fbc4b81a10903c91543.zip
Merge 0.10->trunk
Diffstat (limited to 'util-src')
-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) {