From: | "Victor Ostorga (vostorga)" <vostorga@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-office/ical/files: ical-2.3.3-glibc210.patch |
Date: | Thu, 30 Jul 2009 19:39:32 |
Message-Id: | E1MWbTN-0007wa-Nk@stork.gentoo.org |
1 | vostorga 09/07/30 19:39:29 |
2 | |
3 | Added: ical-2.3.3-glibc210.patch |
4 | Log: |
5 | Added patch allowing compilation against glibc-2.10, closes bug #274307, Respecting CC variable |
6 | (Portage version: 2.1.6.13/cvs/Linux i686) |
7 | |
8 | Revision Changes Path |
9 | 1.1 app-office/ical/files/ical-2.3.3-glibc210.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/ical/files/ical-2.3.3-glibc210.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-office/ical/files/ical-2.3.3-glibc210.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: ical-2.3.3-glibc210.patch |
15 | =================================================================== |
16 | diff -NrU5 ical-2.3.3.original/calendar/calfile.C ical-2.3.3/calendar/calfile.C |
17 | --- ical-2.3.3.original/calendar/calfile.C 2009-07-30 15:06:53.000000000 +0000 |
18 | +++ ical-2.3.3/calendar/calfile.C 2009-07-30 15:10:14.000000000 +0000 |
19 | @@ -56,11 +56,11 @@ |
20 | tmp = new char[len+2]; |
21 | sprintf(tmp, "%s~", fileName); |
22 | backupName = tmp; |
23 | |
24 | // Get directory name for access checks |
25 | - char* lastSlash = strrchr(name, '/'); |
26 | + const char* lastSlash = strrchr(name, '/'); |
27 | if (lastSlash == 0) { |
28 | /* Calendar is in current directory */ |
29 | tmp = new char[3]; |
30 | strcpy(tmp, "./"); |
31 | } |