diff options
Diffstat (limited to 'usr.sbin/pccard/pccardd/cardd.c')
-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); |