deskutils/ical: unbreak with libc++ 3.9
calfile.C:63:11: error: cannot initialize a variable of type 'char *' with an rvalue of type 'const char *' char* lastSlash = strrchr(name, '/'); ^ ~~~~~~~~~~~~~~~~~~ PR: 212343 Reported by: antoine (via exp-run)
This commit is contained in:
parent
8c3b7a9bf3
commit
17d6e40051
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=426308
11
deskutils/ical/files/patch-calendar_calfile.C
Normal file
11
deskutils/ical/files/patch-calendar_calfile.C
Normal file
@ -0,0 +1,11 @@
|
||||
--- calendar/calfile.C.orig 1997-05-24 00:23:52 UTC
|
||||
+++ calendar/calfile.C
|
||||
@@ -60,7 +60,7 @@ CalFile::CalFile(int ro, const char* nam
|
||||
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];
|
Loading…
Reference in New Issue
Block a user