1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 20:12:23 +00:00

SCP: Coverity inspired changes

This commit is contained in:
Mark Pizzolato
2022-03-06 02:11:57 -08:00
parent 87597ea7f4
commit 06c696385f
4 changed files with 51 additions and 27 deletions

View File

@@ -750,7 +750,7 @@ while ((*acl != '\0') && !done) {
rule[cc - (acl + 1)] = '\0';
}
else {
if (strlen (acl) > sizeof (rule))
if (strlen (acl) >= sizeof (rule))
break; /* Too big - error */
strcpy (rule, acl + 1);
}