1
0
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:
Mark Pizzolato
2017-05-07 19:19:55 -07:00
parent f5a1048101
commit 2c6c8f4ef8
5 changed files with 36 additions and 36 deletions

View File

@@ -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);
}