--- Frodo4/Src/1541fs.cpp 2004/01/11 00:09:51 1.4 +++ Frodo4/Src/1541fs.cpp 2004/01/11 14:03:29 1.5 @@ -512,15 +512,15 @@ void FSDrive::close_all_channels(void) * Read from channel */ -uint8 FSDrive::Read(int channel, uint8 *byte) +uint8 FSDrive::Read(int channel, uint8 &byte) { int c; // Channel 15: Error channel if (channel == 15) { - *byte = *error_ptr++; + byte = *error_ptr++; - if (*byte != '\r') + if (byte != '\r') return ST_OK; else { // End of message set_error(ERR_OK); @@ -531,7 +531,7 @@ uint8 FSDrive::Read(int channel, uint8 * if (!file[channel]) return ST_READ_TIMEOUT; // Read one byte - *byte = read_char[channel]; + byte = read_char[channel]; c = fgetc(file[channel]); if (c == EOF) return ST_EOF;