diff --git a/src/plugins/debugger/debuggerprotocol.cpp b/src/plugins/debugger/debuggerprotocol.cpp index 24a0e61dd87..977a09c06a7 100644 --- a/src/plugins/debugger/debuggerprotocol.cpp +++ b/src/plugins/debugger/debuggerprotocol.cpp @@ -200,7 +200,7 @@ QString DebuggerOutputParser::readCString() ++from; // Skip initial quote. QString result; - result.reserve(to - from); + result.reserve(30); while (from < to) { if (*from == '"') { ++from;