blob: d57c916695f89e2be56d5f34f3ca85551fd2af92 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
diff -NrU5 ical-2.3.3.original/calendar/calfile.C ical-2.3.3/calendar/calfile.C
--- ical-2.3.3.original/calendar/calfile.C 2009-07-30 15:06:53.000000000 +0000
+++ ical-2.3.3/calendar/calfile.C 2009-07-30 15:10:14.000000000 +0000
@@ -56,11 +56,11 @@
tmp = new char[len+2];
sprintf(tmp, "%s~", fileName);
backupName = tmp;
// Get directory name for access checks
- char* lastSlash = strrchr(name, '/');
+ const char* lastSlash = strrchr(name, '/');
if (lastSlash == 0) {
/* Calendar is in current directory */
tmp = new char[3];
strcpy(tmp, "./");
}
|