summaryrefslogtreecommitdiff
blob: a65f29dac087b5fc6d86ef561a5d77c1d5812287 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -uNr cciss_vol_status-1.06.ORIG//cciss_vol_status.c cciss_vol_status-1.06/cciss_vol_status.c
--- cciss_vol_status-1.06.ORIG//cciss_vol_status.c	2010-05-02 16:33:47.634833662 +0100
+++ cciss_vol_status-1.06/cciss_vol_status.c	2010-05-02 16:34:03.351822015 +0100
@@ -1004,7 +1004,7 @@
 	if (status < 0) 
 		return 0;
 	for (i = 0; prod[i] != NULL; i++) {
-		if (strncmp(std_inq+8, prod[i], strnlen(prod[i])) == 0)
+		if (strncmp(std_inq+8, prod[i], strlen(prod[i])) == 0)
 			return 1;
 	}
 	return 0;