summaryrefslogtreecommitdiff
path: root/src/PeerConnection.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-01-10 15:22:55 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-01-10 15:22:55 +0000
commit5b8358b4d5917491093a04bddc867559b63bf52f (patch)
tree77aa759f24158a2e839d1e16c446f57e0d977112 /src/PeerConnection.h
parent9a7fe58c57999e1fff6887473048a96a8ede1736 (diff)
I forgot to commit PeerConnection.h
2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just payload length(4bytes) are received. This happens because lenbufLength is not updated in this particular case and successive call of receiveMessage() overwrites payload length with bytes recieved which are payload body. * src/PeerConnection.{h, cc} * src/message.h
Diffstat (limited to 'src/PeerConnection.h')
-rw-r--r--src/PeerConnection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PeerConnection.h b/src/PeerConnection.h
index 6cf5dbf2..d64b6f9e 100644
--- a/src/PeerConnection.h
+++ b/src/PeerConnection.h
@@ -54,7 +54,7 @@ private:
char resbuf[MAX_PAYLOAD_LEN];
int32_t resbufLength;
int32_t currentPayloadLength;
- unsigned char lenbuf[4];
+ char lenbuf[4];
int32_t lenbufLength;
public: