ALTAIR: Leave room for NUL byte in the degenerate case (COVERITY)
This commit is contained in:
parent
773cc1c319
commit
8344225aef
1 changed files with 1 additions and 1 deletions
|
@ -252,7 +252,7 @@ if ((sw & SWMASK ('C')) || ((*cptr == '"') && cptr++)) { /* ASCII string? */
|
||||||
or numeric (including spaces).
|
or numeric (including spaces).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
while (i < sizeof (gbuf) - 3) {
|
while (i < sizeof (gbuf) - 4) {
|
||||||
if (*cptr == ',' || *cptr == '\0' ||
|
if (*cptr == ',' || *cptr == '\0' ||
|
||||||
sim_isdigit(*cptr))
|
sim_isdigit(*cptr))
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue