dprintf_formatf: fix (false?) Coverity warning
authorDaniel Stenberg <daniel@haxx.se>
Tue, 17 May 2016 07:06:32 +0000 (09:06 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 17 May 2016 07:06:32 +0000 (09:06 +0200)
commitb4990734066b6333f4a6b68718afafa1ecaa928d
treee943b6b4b179c48fce97a19ac7122ec25a235643
parent2639c3920d79df38dc0574ac37396af19b30e9cb
dprintf_formatf: fix (false?) Coverity warning

CID 1024412: Memory - illegal accesses (OVERRUN). Claimed to happen when
we run over 'workend' but the condition says <= workend and for all I
can see it should be safe. Compensating for the warning by adding a byte
margin in the buffer.

Also, removed the extra brace level indentation in the code and made it
so that 'workend' is only assigned once within the function.
lib/mprintf.c