You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-apps/cciss_vol_status/files/1.06-strlen-typo.patch

13 lines
505 B

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;