diff options
author | jbeich <jbeich@FreeBSD.org> | 2016-11-18 11:45:14 +0800 |
---|---|---|
committer | jbeich <jbeich@FreeBSD.org> | 2016-11-18 11:45:14 +0800 |
commit | dd006b3796be716e14526d7b02935be9660ed7a1 (patch) | |
tree | afa876fd88ec925c024ce7a6763a7d7fed246a09 /deskutils | |
parent | 9dea405fb989e40e14fd936a3ad6b039033328a0 (diff) | |
download | freebsd-ports-gnome-dd006b3796be716e14526d7b02935be9660ed7a1.tar.gz freebsd-ports-gnome-dd006b3796be716e14526d7b02935be9660ed7a1.tar.zst freebsd-ports-gnome-dd006b3796be716e14526d7b02935be9660ed7a1.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)
Diffstat (limited to 'deskutils')
-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]; |