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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user