svn commit: r426308 - head/deskutils/ical/files
Jan Beich
jbeich at FreeBSD.org
Fri Nov 18 03:45:15 UTC 2016
Author: jbeich
Date: Fri Nov 18 03:45:14 2016
New Revision: 426308
URL: https://svnweb.freebsd.org/changeset/ports/426308
Log:
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)
Added:
head/deskutils/ical/files/patch-calendar_calfile.C (contents, props changed)
Added: head/deskutils/ical/files/patch-calendar_calfile.C
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/deskutils/ical/files/patch-calendar_calfile.C Fri Nov 18 03:45:14 2016 (r426308)
@@ -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];
More information about the svn-ports-head
mailing list