diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2016-11-18 03:45:14 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2016-11-18 03:45:14 +0000 |
commit | 17d6e400510d30095e5ab831299e7e9747d5889d (patch) | |
tree | afa876fd88ec925c024ce7a6763a7d7fed246a09 /deskutils/ical | |
parent | 8c3b7a9bf3fe612e229fe646fbc27d648158ab82 (diff) | |
download | ports-17d6e400510d30095e5ab831299e7e9747d5889d.tar.gz ports-17d6e400510d30095e5ab831299e7e9747d5889d.zip |
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)
Notes
Notes:
svn path=/head/; revision=426308
Diffstat (limited to 'deskutils/ical')
-rw-r--r-- | deskutils/ical/files/patch-calendar_calfile.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/deskutils/ical/files/patch-calendar_calfile.C b/deskutils/ical/files/patch-calendar_calfile.C new file mode 100644 index 000000000000..3422711a1273 --- /dev/null +++ b/deskutils/ical/files/patch-calendar_calfile.C @@ -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]; |