From 718b5a3cf890d13cbf09424311f9684085ced0ff Mon Sep 17 00:00:00 2001 From: honghui Date: Wed, 15 Oct 2014 00:20:18 +0800 Subject: [PATCH] Windows runtime response uncorrect --- .../frameworks/runtime-src/Classes/runtime/Runtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lua-template-runtime/frameworks/runtime-src/Classes/runtime/Runtime.cpp b/templates/lua-template-runtime/frameworks/runtime-src/Classes/runtime/Runtime.cpp index b79da7cd76..e6961444b9 100644 --- a/templates/lua-template-runtime/frameworks/runtime-src/Classes/runtime/Runtime.cpp +++ b/templates/lua-template-runtime/frameworks/runtime-src/Classes/runtime/Runtime.cpp @@ -1032,7 +1032,7 @@ public: dReplyParse.Accept(writer); string msgContent = buffer.GetString(); char msgLength[64] = {0x1, 0}; - sprintf(msgLength + 1, "%zu:", msgContent.size()); + sprintf(msgLength + 1, "%d:", msgContent.size()); string msg(msgLength + msgContent);