mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-15 10:18:39 -09:00
Fixed crash on browsing dirs with a small window size
Fixes bug #2991787
This commit is contained in:
parent
a35f998168
commit
a7b7841ac0
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+1);
|
line = malloc(winrows > 35 ? winrows+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