]> git.pld-linux.org Git - packages/cciss_vol_status.git/blame - strnlen.patch
- fix strnlen compile error; rel 3
[packages/cciss_vol_status.git] / strnlen.patch
CommitLineData
7b4309ff
ER
1--- cciss_vol_status-1.04/cciss_vol_status.c~ 2009-09-21 18:12:23.000000000 +0300
2+++ cciss_vol_status-1.04/cciss_vol_status.c 2009-10-13 09:39:20.227199332 +0300
3@@ -988,7 +988,7 @@
4 if (status < 0)
5 return 0;
6 for (i = 0; i < (sizeof(hpsa_prod) / sizeof(hpsa_prod[0])); i++) {
7- if (strncmp(std_inq+8, hpsa_prod[i], strnlen(hpsa_prod[i])) == 0)
8+ if (strncmp(std_inq+8, hpsa_prod[i], strlen(hpsa_prod[i])) == 0)
9 return 1;
10 }
11 return 0;
This page took 0.061568 seconds and 4 git commands to generate.