mirror of
https://github.com/Cloudef/bemenu
synced 2024-11-23 17:32:11 +01:00
Buffer grown too much.
This commit is contained in:
parent
cc93ff905f
commit
48cf42f0c9
@ -107,7 +107,7 @@ static void _bmDrawCursesDrawLine(int pair, int y, const char *format, ...)
|
||||
}
|
||||
|
||||
if (dw < ncols) {
|
||||
if (!_bmDrawCursesResizeBuffer(&buffer, blen - 1, blen + (ncols - dw) + 1))
|
||||
if (!_bmDrawCursesResizeBuffer(&buffer, blen - 1, blen + (ncols - dw)))
|
||||
return;
|
||||
} else if (i < blen) {
|
||||
int cc = dw - (dw - ncols);
|
||||
|
Loading…
Reference in New Issue
Block a user