mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-15 10:18:39 -09:00
Properly fixed crash on browsing dirs with a small window size
I was overseeing a stupid mistake in
a7b7841ac0
Obviously, you need to check against wincols and not winrows...
This commit is contained in:
parent
cc15863fcc
commit
c84e70b627
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ void browse_draw_item(struct dir *n, int row) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* format and add item to the list */
|
/* format and add item to the list */
|
||||||
line = malloc(winrows > 35 ? winrows+1 : 36);
|
line = malloc(wincols > 35 ? wincols+1 : 36);
|
||||||
switch(graph) {
|
switch(graph) {
|
||||||
case 0:
|
case 0:
|
||||||
sprintf(line, "%%c %%8s %%c%%-%ds", wincols-13);
|
sprintf(line, "%%c %%8s %%c%%-%ds", wincols-13);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue