Software /
code /
prosody
Diff
util-src/encodings.c @ 8294:90576b60f2d0
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 05 Oct 2017 18:06:04 +0200 |
parent | 8291:fba1ea67f5c0 |
child | 9153:26c5a4a14905 |
line wrap: on
line diff
--- a/util-src/encodings.c Wed Oct 04 12:10:55 2017 +0200 +++ b/util-src/encodings.c Thu Oct 05 18:06:04 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) {