diff --git a/mbfido/forward.c b/mbfido/forward.c index 2197c79a..07668343 100644 --- a/mbfido/forward.c +++ b/mbfido/forward.c @@ -199,7 +199,7 @@ void ForwardFile(fidoaddr Node, fa_list *sbl) subject = ctime(&now); Striplf(subject); ba = bestaka_s(dest); - fprintf(fp, "Path %s %lu %s %s\r\n", ascfnode(ba, 0x1f), mktime(localtime(&now)), subject, tzname[0]); + fprintf(fp, "Path %s %lu %s %s\r\n", ascfnode(ba, 0x1f), (long)mktime(localtime(&now)), subject, tzname[0]); tidy_faddr(ba); if (nodes.TIC_AdvSB) { diff --git a/mbfido/msg.c b/mbfido/msg.c index cd4aaea9..981548dc 100644 --- a/mbfido/msg.c +++ b/mbfido/msg.c @@ -100,7 +100,7 @@ int toss_onemsg(char *msgname) char fromUserName[36], toUserName[36], subject[72], DateTime[20]; FILE *fp, *np; faddr *ta; - unsigned char buf[0xbd]; + unsigned char buf[0xbe]; unsigned short destNode = 0, destNet = 0, destZone = 0, destPoint = 0; unsigned short origNode = 0, origNet = 0, origZone = 0, origPoint = 0; unsigned short Attribute = 0; diff --git a/mbsebbs/ymsend.c b/mbsebbs/ymsend.c index a99520fe..9fbab882 100644 --- a/mbsebbs/ymsend.c +++ b/mbsebbs/ymsend.c @@ -222,7 +222,7 @@ static int wctxpn(char *fname) * int. But i believe sending %lo instead of %o _could_ break compatability */ if ((input_f != stdin) && *fname) - sprintf(p, "%lu %lo %o 0 %d %ld", (long) f.st_size, f.st_mtime, + sprintf(p, "%lu %lo %o 0 %d %ld", (long) f.st_size, (long) f.st_mtime, (unsigned int)((no_unixmode) ? 0 : f.st_mode), Filesleft, Totalleft); Totalleft -= f.st_size; diff --git a/mbsebbs/zmsend.c b/mbsebbs/zmsend.c index f25307bb..471ae4f4 100644 --- a/mbsebbs/zmsend.c +++ b/mbsebbs/zmsend.c @@ -213,7 +213,7 @@ static int sendzfile(char *rn) Syslog('+', "Zmodem: size %lu bytes, dated %s", (unsigned long)st.st_size, rfcdate(st.st_mtime)); gettimeofday(&starttime, &tz); - sprintf(txbuf,"%s %lu %lo %o 0 0 0", rn,(unsigned long)st.st_size, st.st_mtime+(st.st_mtime%2), st.st_mode); + sprintf(txbuf,"%s %lu %lo %o 0 0 0", rn,(unsigned long)st.st_size, (long)st.st_mtime+(st.st_mtime%2), st.st_mode); bufl = strlen(txbuf); *(strchr(txbuf,' ')) = '\0'; /*hope no blanks in filename*/