[direct] MB_CUR_MAX -> MB_LEN_MAX, no VLAs #2301

This commit is contained in:
nick black 2021-10-26 15:09:16 -04:00
parent ee784ece64
commit 07fefa3004
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -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)){