From: | "Tony Vroon (chainsaw)" <chainsaw@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-apps/cciss_vol_status/files: 1.06-strlen-typo.patch |
Date: | Sun, 02 May 2010 15:39:51 |
Message-Id: | 20100502153948.2E6E12C236@corvid.gentoo.org |
1 | chainsaw 10/05/02 15:39:48 |
2 | |
3 | Added: 1.06-strlen-typo.patch |
4 | Log: |
5 | Version bump, as requested by Johan Bergström in bug #299729. Patched out a strnlen vs strlen typo. Dropped suspect DEPEND from older ebuild. |
6 | (Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 sys-apps/cciss_vol_status/files/1.06-strlen-typo.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/cciss_vol_status/files/1.06-strlen-typo.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/cciss_vol_status/files/1.06-strlen-typo.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: 1.06-strlen-typo.patch |
15 | =================================================================== |
16 | diff -uNr cciss_vol_status-1.06.ORIG//cciss_vol_status.c cciss_vol_status-1.06/cciss_vol_status.c |
17 | --- cciss_vol_status-1.06.ORIG//cciss_vol_status.c 2010-05-02 16:33:47.634833662 +0100 |
18 | +++ cciss_vol_status-1.06/cciss_vol_status.c 2010-05-02 16:34:03.351822015 +0100 |
19 | @@ -1004,7 +1004,7 @@ |
20 | if (status < 0) |
21 | return 0; |
22 | for (i = 0; prod[i] != NULL; i++) { |
23 | - if (strncmp(std_inq+8, prod[i], strnlen(prod[i])) == 0) |
24 | + if (strncmp(std_inq+8, prod[i], strlen(prod[i])) == 0) |
25 | return 1; |
26 | } |
27 | return 0; |