X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fical_subst.c;fp=webcit%2Fical_subst.c;h=43a10f2eb503cbbb336425ec0d7b0de1b43fc7f5;hb=6cc8e02c78fa3b6e46f447396cda18f190f3d0d1;hp=e48b2f9902b0c9aa5a55d7435f1ab0b21fe2e136;hpb=99ebb68c4b810cee74bcd429cca35a74aa1b384c;p=citadel.git diff --git a/webcit/ical_subst.c b/webcit/ical_subst.c index e48b2f990..43a10f2eb 100644 --- a/webcit/ical_subst.c +++ b/webcit/ical_subst.c @@ -167,7 +167,7 @@ int cond_ICalHaveTimeItem(StrBuf *Target, WCTemplputParams *TP) DynamicTP = (WCTemplputParams*) malloc(sizeof(WCTemplputParams) + sizeof(struct icaltimetype)); - t = (struct icaltimetype *) ((char*)DynamicTP) + sizeof(WCTemplputParams); + t = (struct icaltimetype *) &DynamicTP[1]; memset(&tt, 0, sizeof(struct icaltimetype)); switch (Kind) {