Bluewave is now endian correct

This commit is contained in:
Michiel Broek 2006-01-23 16:27:16 +00:00
parent d6f64c6de4
commit 3d498c280a
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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 */