378 else |
378 else |
379 { |
379 { |
380 // vsnprintf needs more space, so we have to allocate a new buffer and try again. |
380 // vsnprintf needs more space, so we have to allocate a new buffer and try again. |
381 Vector<char> newBuffer(length + 1); |
381 Vector<char> newBuffer(length + 1); |
382 vsnprintf(newBuffer.data(), length + 1, formatString, argsCopy); |
382 vsnprintf(newBuffer.data(), length + 1, formatString, argsCopy); |
383 m_string = newBuffer; |
383 m_string = newBuffer.data(); |
384 } |
384 } |
385 } |
385 } |
386 |
386 |
387 /*! |
387 /*! |
388 * \brief Joins the elements of this string list into one longer string. |
388 * \brief Joins the elements of this string list into one longer string. |