Skip to content

Commit f0ed359

Browse files
committed
Merge pull request #83 from yas/fix_issue_82
fix #82: It was corrected to lack to deduct an offset from the charac…
2 parents 36059f1 + b1527fe commit f0ed359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/sio_packet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ namespace sio
288288
pos++;
289289
if (_type == type_binary_event || _type == type_binary_ack) {
290290
size_t score_pos = payload_ptr.find('-');
291-
_pending_buffers = boost::lexical_cast<unsigned>(payload_ptr.substr(pos,score_pos));
291+
_pending_buffers = boost::lexical_cast<unsigned>(payload_ptr.substr(pos,score_pos - pos));
292292
pos = score_pos+1;
293293
}
294294
}

0 commit comments

Comments
 (0)