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);