ports/deskutils/ical/files/patch-calendar_calfile.C
Tobias Kortkamp 1d32e97a18 desktuils/ical: Fix build with Clang 6
- Submitter becomes maintainer
- While here add missing dependencies

http://beefy11.nyi.freebsd.org/data/head-i386-default/p473790_s335878/logs/ical-2.2_4.log

PR:		226799
Reported by:	bob@immure.com
Submitted by:	fbsd@opal.com
2018-07-07 15:35:36 +00:00

11 lines
389 B
C

--- calendar/calfile.C.orig 1997-05-24 00:23:52 UTC
+++ calendar/calfile.C
@@ -60,7 +60,7 @@ CalFile::CalFile(int ro, const char* name) {
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];