From 3d498c280a83747fb50d8a7f289fbe650b16f214 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 23 Jan 2006 16:27:16 +0000 Subject: [PATCH] Bluewave is now endian correct --- ChangeLog | 1 + mbsebbs/offline.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4237a8eb..e257279a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ v0.83.8 22-Jan-2006 mbsebbs: Fixed a strange bug that ftell didn't work right, this caused corrupt bluewave download packets. + Bluewave is now big/little endian correct. v0.83.7 31-Dec-2005 - 22-Jan-2006 diff --git a/mbsebbs/offline.c b/mbsebbs/offline.c index bfe7ac7f..dd0c0de9 100644 --- a/mbsebbs/offline.c +++ b/mbsebbs/offline.c @@ -1472,7 +1472,8 @@ void BlueWave_Fetch() i = 0; memset(&Upr, 0, sizeof(UPL_REC)); - while (fread(&Upr, Uph.upl_rec_len, 1, up) == 1) { + Syslog('m', "Start UPL reply records"); + while (fread(&Upr, le_us(Uph.upl_rec_len), 1, up) == 1) { PUTCHAR('.'); Syslog('m', " From : %s", Upr.from); Syslog('m', " To : %s", Upr.to); @@ -1589,6 +1590,7 @@ void BlueWave_Fetch() } memset(&Upr, 0, sizeof(UPL_REC)); } + Syslog('m', "Stop UPL reply records"); Enter(1); if (i) { /* Messages imported */