X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/76249e6ff245123640c637535fe9bbf09603265d..0bd57c0f66354345eac1d1654a56860919254b4c:/mac/macmisc.c diff --git a/mac/macmisc.c b/mac/macmisc.c index 128b3c40..ce32eb44 100644 --- a/mac/macmisc.c +++ b/mac/macmisc.c @@ -156,7 +156,7 @@ int filename_is_null(Filename fn) return fn.fss.vRefNum == 0 && fn.fss.parID == 0 && fn.fss.name[0] == 0; } -FILE *f_open(Filename fn, char const *mode) +FILE *f_open(Filename fn, char const *mode, int is_private) { short savevol; long savedir; @@ -183,8 +183,8 @@ struct tm ltime(void) tm.tm_min=d.minute; tm.tm_hour=d.hour; tm.tm_mday=d.day; - tm.tm_mon=d.month; - tm.tm_year=d.year; + tm.tm_mon=d.month-1; + tm.tm_year=d.year-1900; tm.tm_wday=d.dayOfWeek; tm.tm_yday=1; /* GetTime doesn't tell us */ tm.tm_isdst=0; /* Have to do DST ourselves */