diff options
Diffstat (limited to 'lldb/source/Utility/VASprintf.cpp')
| -rw-r--r-- | lldb/source/Utility/VASprintf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Utility/VASprintf.cpp b/lldb/source/Utility/VASprintf.cpp index e950fb75cfa..900d9754a9b 100644 --- a/lldb/source/Utility/VASprintf.cpp +++ b/lldb/source/Utility/VASprintf.cpp @@ -36,8 +36,8 @@ bool lldb_private::VASprintf(llvm::SmallVectorImpl<char> &buf, const char *fmt, } if (size_t(length) >= buf.size()) { - // The error formatted string didn't fit into our buffer, resize it - // to the exact needed size, and retry + // The error formatted string didn't fit into our buffer, resize it to the + // exact needed size, and retry buf.resize(length + 1); length = ::vsnprintf(buf.data(), buf.size(), fmt, copy_args); if (length < 0) { |

