Merge pull request #8695 from cocoscodeide/v3

Windows runtime response uncorrect
This commit is contained in:
minggo 2014-10-15 00:25:48 +08:00
commit fe4c45061e
1 changed files with 1 additions and 1 deletions

View File

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