mirror of
https://github.com/simh/simh.git
synced 2026-01-25 11:46:37 +00:00
SCP: Always invoke strlcpy, strlcat, strcasecmp and strcasencmp vs sim_ forms
This commit is contained in:
@@ -302,7 +302,7 @@ found = 0;
|
||||
n = strlen(name);
|
||||
for (i=0; i<count && !found; i++) {
|
||||
if ((n == strlen(list[i].name)) &&
|
||||
(sim_strncasecmp(name, list[i].name, n) == 0)) {
|
||||
(strncasecmp(name, list[i].name, n) == 0)) {
|
||||
found = 1;
|
||||
strcpy(temp, list[i].name); /* only case might be different */
|
||||
}
|
||||
@@ -321,7 +321,7 @@ found = 0;
|
||||
n = strlen(name);
|
||||
for (i=0; i<count && !found; i++) {
|
||||
if ((n == strlen(list[i].name)) &&
|
||||
(sim_strncasecmp(name, list[i].name, n) == 0)) {
|
||||
(strncasecmp(name, list[i].name, n) == 0)) {
|
||||
found = 1;
|
||||
strcpy(temp, list[i].desc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user