]> git.pld-linux.org Git - packages/cciss_vol_status.git/blob - strnlen.patch
- argh, strnlen.patch is back; rel 3
[packages/cciss_vol_status.git] / strnlen.patch
1 --- cciss_vol_status-1.06/cciss_vol_status.c~   2009-11-18 19:13:06.000000000 +0200
2 +++ cciss_vol_status-1.06/cciss_vol_status.c    2009-11-20 19:24:20.856775735 +0200
3 @@ -1004,7 +1004,7 @@
4         if (status < 0) 
5                 return 0;
6         for (i = 0; prod[i] != NULL; i++) {
7 -               if (strncmp(std_inq+8, prod[i], strnlen(prod[i])) == 0)
8 +               if (strncmp(std_inq+8, prod[i], strlen(prod[i])) == 0)
9                         return 1;
10         }
11         return 0;
This page took 0.049 seconds and 3 git commands to generate.