summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/BStream.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/BStream.cc b/src/BStream.cc
index 16fd1d1..2fe75c7 100644
--- a/src/BStream.cc
+++ b/src/BStream.cc
@@ -85,6 +85,9 @@ int Balau::BStream::peekNextByte() {
}
Balau::String Balau::BStream::readString(bool putNL) {
+ if (m_h.isA<BStream>())
+ return m_h.asA<BStream>()->readString(putNL);
+
peekNextByte();
uint8_t * cr, * lf, * nl;
String ret;