diff --git a/dump1090.c b/dump1090.c index c962816..323de38 100644 --- a/dump1090.c +++ b/dump1090.c @@ -445,7 +445,7 @@ void readDataFromFile(void) { } toread = MODES_ASYNC_BUF_SIZE; - p = Modes.data; + p = (unsigned char *) Modes.data; while(toread) { nread = read(Modes.fd, p, toread); if (nread <= 0) {