summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/MirLua/Modules/JSON/src/json.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/MirLua/Modules/JSON/src/json.c b/plugins/MirLua/Modules/JSON/src/json.c
index 8818e0d7fe..dd7c864f70 100644
--- a/plugins/MirLua/Modules/JSON/src/json.c
+++ b/plugins/MirLua/Modules/JSON/src/json.c
@@ -230,9 +230,8 @@ decode_string(lua_State *L, char **s)
break;
case 'u':
code2utf8(L, (unsigned char *)(*s) + 2, utfbuf);
- size_t tmplen = strlen(utfbuf);
strcpy(newc, utfbuf);
- newc += tmplen;
+ newc += strlen(utfbuf);
(*s) += 6;
break;
default: