mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 14:20:33 -04:00
- 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
18 lines
499 B
C
18 lines
499 B
C
--- calendar/calendar.C.orig 1997-05-21 20:32:59 UTC
|
|
+++ calendar/calendar.C
|
|
@@ -224,13 +224,13 @@ int Calendar::Read(Lexer* lex) {
|
|
char* name = new char[len + 1];
|
|
if (! lex->GetText(name, len) ||
|
|
! lex->Skip(closer)) {
|
|
- delete name;
|
|
+ delete [] name;
|
|
lex->SetError("error reading included file name");
|
|
return 0;
|
|
}
|
|
name[len] = '\0';
|
|
Include(name);
|
|
- delete name;
|
|
+ delete [] name;
|
|
}
|
|
else if (strcmp(keyword, "Hide") == 0) {
|
|
char const* x;
|