]> git.pld-linux.org Git - packages/cciss_vol_status.git/blob - strnlen.patch
- fix strnlen compile error; rel 3
[packages/cciss_vol_status.git] / strnlen.patch
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.085604 seconds and 3 git commands to generate.