mirror of
https://github.com/simh/simh.git
synced 2026-01-11 23:52:58 +00:00
ALTAIR: Leave room for NUL byte in the degenerate case (COVERITY)
This commit is contained in:
parent
773cc1c319
commit
8344225aef
@ -252,7 +252,7 @@ if ((sw & SWMASK ('C')) || ((*cptr == '"') && cptr++)) { /* ASCII string? */
|
||||
or numeric (including spaces).
|
||||
*/
|
||||
|
||||
while (i < sizeof (gbuf) - 3) {
|
||||
while (i < sizeof (gbuf) - 4) {
|
||||
if (*cptr == ',' || *cptr == '\0' ||
|
||||
sim_isdigit(*cptr))
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user