summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-01-09 14:21:05 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-01-09 14:21:05 +0000
commit94388890dd4d32d26d35bf46324d03ff79b57e60 (patch)
tree2e8636c17e3d495b7bf52b0103368a870f41143d
parent96a110f44fecc323a5f50890f271ba2f1d0c2d5e (diff)
vs2010 compilation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@16067 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/MirLua/Modules/JSON/src/json.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirLua/Modules/JSON/src/json.c b/plugins/MirLua/Modules/JSON/src/json.c
index 165780488f..8818e0d7fe 100644
--- a/plugins/MirLua/Modules/JSON/src/json.c
+++ b/plugins/MirLua/Modules/JSON/src/json.c
@@ -230,14 +230,14 @@ decode_string(lua_State *L, char **s)
break;
case 'u':
code2utf8(L, (unsigned char *)(*s) + 2, utfbuf);
- size_t len = strlen(utfbuf);
+ size_t tmplen = strlen(utfbuf);
strcpy(newc, utfbuf);
- newc += len;
+ newc += tmplen;
(*s) += 6;
break;
-/* default:
+ default:
json_error(L, "invalid escape character");
- break;*/
+ break;
}
}
else if (nextEscape != NULL) {