Windows runtime response uncorrect

This commit is contained in:
honghui 2014-10-15 00:20:18 +08:00
parent 3fae476cd2
commit 718b5a3cf8
1 changed files with 1 additions and 1 deletions

View File

@ -1032,7 +1032,7 @@ public:
dReplyParse.Accept(writer); dReplyParse.Accept(writer);
string msgContent = buffer.GetString(); string msgContent = buffer.GetString();
char msgLength[64] = {0x1, 0}; char msgLength[64] = {0x1, 0};
sprintf(msgLength + 1, "%zu:", msgContent.size()); sprintf(msgLength + 1, "%d:", msgContent.size());
string msg(msgLength + msgContent); string msg(msgLength + msgContent);