mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
[direct] MB_CUR_MAX -> MB_LEN_MAX, no VLAs #2301
This commit is contained in:
parent
ee784ece64
commit
07fefa3004
@ -1383,8 +1383,8 @@ int ncdirect_box(ncdirect* n, uint64_t ul, uint64_t ur,
|
|||||||
if(xlen < 2 || ylen < 2){
|
if(xlen < 2 || ylen < 2){
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
char hl[MB_CUR_MAX + 1];
|
char hl[MB_LEN_MAX + 1];
|
||||||
char vl[MB_CUR_MAX + 1];
|
char vl[MB_LEN_MAX + 1];
|
||||||
unsigned edges;
|
unsigned edges;
|
||||||
edges = !(ctlword & NCBOXMASK_TOP) + !(ctlword & NCBOXMASK_LEFT);
|
edges = !(ctlword & NCBOXMASK_TOP) + !(ctlword & NCBOXMASK_LEFT);
|
||||||
if(edges >= box_corner_needs(ctlword)){
|
if(edges >= box_corner_needs(ctlword)){
|
||||||
|
Loading…
Reference in New Issue
Block a user