Merge branch 'v0.20.x'

This commit is contained in:
Max Kellermann
2017-08-08 19:30:30 +02:00
2 changed files with 2 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ FormatStringV(const char *fmt, va_list args) noexcept
const size_t length = strlen(buffer);
char *p = new char[length + 1];
memcpy(p, buffer, length + 1);
return AllocatedString<>::Donate(buffer);
return AllocatedString<>::Donate(p);
#endif
}