Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a991ada authored by Joe Onorato's avatar Joe Onorato
Browse files

Fix varargs bug that made incident_report print incorrectly.

Test: incident_report 3000
Change-Id: I397677ecd6e50ad143518416c8fa3e408139189b
parent 76690126
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -69,8 +69,10 @@ Out::printf(const char* format, ...)
    va_start(args, format);

    len = vsnprintf(mBuf, mBufSize, format, args);
    va_end(args);
    bool truncated = (len >= mBufSize) && (reallocate(len) < len);

    va_start(args, format);
    len = vsnprintf(mBuf, mBufSize, format, args);
    va_end(args);