summaryrefslogtreecommitdiff
blob: 7b63b46c4c3c1190e24f55f9ec2074a7c6220ef5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Correctly check option strings, bug #171069

--- nvi-1.81.5/common/options.c
+++ nvi-1.81.5/common/options.c
@@ -1055,7 +1055,7 @@
 			continue;
 		if (op->name[0] > name[0])
 			break;
-		if (!memcmp(op->name, name, len)) {
+		if (!memcmp(op->name, name, len * sizeof(CHAR_T))) {
 			if (found != NULL)
 				return (NULL);
 			found = op;