Ensure va_end() is always called in TextWindow::Printf().
This commit is contained in:
parent
771b415a12
commit
03e479eb25
@ -294,11 +294,11 @@ void TextWindow::ClearScreen() {
|
||||
void TextWindow::Printf(bool halfLine, const char *fmt, ...) {
|
||||
if(!canvas) return;
|
||||
|
||||
if(rows >= MAX_ROWS) return;
|
||||
|
||||
va_list vl;
|
||||
va_start(vl, fmt);
|
||||
|
||||
if(rows >= MAX_ROWS) return;
|
||||
|
||||
int r, c;
|
||||
r = rows;
|
||||
top[r] = (r == 0) ? 0 : (top[r-1] + (halfLine ? 3 : 2));
|
||||
|
Loading…
Reference in New Issue
Block a user