diff options
author | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2001-11-29 14:33:57 +0000 |
---|---|---|
committer | Mitsuru IWASAKI <iwasaki@FreeBSD.org> | 2001-11-29 14:33:57 +0000 |
commit | fcb24d01b034410fe8b44036349a664d9a8db1da (patch) | |
tree | 66cde9a081fac59b9793d66a9e3777e592753632 /usr.sbin/pccard | |
parent | 2d69bc9b8e2cd98d2ec2453c822b32faab8e7c86 (diff) | |
download | src-test2-fcb24d01b034410fe8b44036349a664d9a8db1da.tar.gz src-test2-fcb24d01b034410fe8b44036349a664d9a8db1da.zip |
Notes
Diffstat (limited to 'usr.sbin/pccard')
-rw-r--r-- | usr.sbin/pccard/pccardd/cardd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.sbin/pccard/pccardd/cardd.c b/usr.sbin/pccard/pccardd/cardd.c index 9c8dff19662e..b2ca965a889c 100644 --- a/usr.sbin/pccard/pccardd/cardd.c +++ b/usr.sbin/pccard/pccardd/cardd.c @@ -246,6 +246,10 @@ cis_strcmp(char *db, char *cis) db++; } else { /* otherwise, matching by strncmp() */ + if (n != strlen(cis)) { + return -1; + } + return strncmp(db, cis, n); } p = xmalloc(n); |