sources/mystring.cpp

changeset 181
e254398fcc7c
parent 179
7fc34735178e
child 182
20ca0a6be175
--- a/sources/mystring.cpp	Wed Jan 27 13:08:51 2021 +0200
+++ b/sources/mystring.cpp	Wed Jan 27 13:17:11 2021 +0200
@@ -380,7 +380,7 @@
 		// vsnprintf needs more space, so we have to allocate a new buffer and try again.
 		Vector<char> newBuffer(length + 1);
 		vsnprintf(newBuffer.data(), length + 1, formatString, argsCopy);
-		m_string = newBuffer;
+		m_string = newBuffer.data();
 	}
 }
 

mercurial