summaryrefslogtreecommitdiffstats
path: root/src/utf8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utf8.cpp')
-rw-r--r--src/utf8.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utf8.cpp b/src/utf8.cpp
index a71ede8..ea7ee34 100644
--- a/src/utf8.cpp
+++ b/src/utf8.cpp
@@ -138,7 +138,7 @@ static inline std::string caseConvert(const std::string &input,
const char *(*conversionFunc)(uint32_t code))
{
uint32_t code;
- std::stringstream result;
+ std::ostringstream result(std::ios_base::ate);
size_t len;
size_t bytesLeft = input.length();
const char *p = input.c_str();