Browse Source

fixed misalignment

pull/167/head
orignal 10 years ago
parent
commit
6e9149afd4
  1. 2
      SSUSession.cpp

2
SSUSession.cpp

@ -1094,7 +1094,7 @@ namespace transport @@ -1094,7 +1094,7 @@ namespace transport
{
uint8_t buf[SSU_MTU_V4 + 18];
size_t msgSize = len + sizeof (SSUHeader);
size_t paddingSize = msgSize >> 4; // %16
size_t paddingSize = msgSize & 0x0F; // %16
if (paddingSize > 0) msgSize += (16 - paddingSize);
if (msgSize > SSU_MTU_V4)
{

Loading…
Cancel
Save