summaryrefslogtreecommitdiff
path: root/src/core/BufferedCharReader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/BufferedCharReader.cpp')
-rw-r--r--src/core/BufferedCharReader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/BufferedCharReader.cpp b/src/core/BufferedCharReader.cpp
index 0821a5d..aeedf12 100644
--- a/src/core/BufferedCharReader.cpp
+++ b/src/core/BufferedCharReader.cpp
@@ -158,7 +158,7 @@ bool BufferedCharReader::readCharacterAtCursor(ReadCursor &cursor, char *c)
// If data has been read, append it to the input buffer and try
// again
if (cnt > 0) {
- buffer.emplace_back(buf.data());
+ buffer.emplace_back(std::string(buf.data(), cnt));
continue;
}