mirror of
https://github.com/open-simh/simh.git
synced 2026-02-27 01:10:17 +00:00
ALTAIR: Leave room for NUL byte in the degenerate case (COVERITY)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user