From 87d76a39954fdf324dbd1af931b141c5ed85c83c Mon Sep 17 00:00:00 2001 From: Peter Thorson Date: Tue, 10 Jul 2012 07:25:27 -0500 Subject: [PATCH] Fixes a frame read issue with hybi00 references #101 --- src/processors/hybi_legacy.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/processors/hybi_legacy.hpp b/src/processors/hybi_legacy.hpp index bdc75d698f..6d763538cc 100644 --- a/src/processors/hybi_legacy.hpp +++ b/src/processors/hybi_legacy.hpp @@ -199,7 +199,9 @@ public: if (m_data_message) { size_t num; - num = static_cast(input.readsome(m_payload_buffer, PAYLOAD_BUFFER_SIZE)); + input.get(m_payload_buffer, PAYLOAD_BUFFER_SIZE, 0xFF); + + num = static_cast(input.gcount()); if (input.bad()) { throw processor::exception("istream readsome error",