diff --git a/QnetModem.cpp b/QnetModem.cpp index ef55ed0..4e8c02b 100644 --- a/QnetModem.cpp +++ b/QnetModem.cpp @@ -119,7 +119,7 @@ bool CQnetModem::GetVersion() hardwareType = HWT_UNKNOWN; } - printf("MMDVM protocol version: %u, Modem: %s", frame.protocol, frame.version); + printf("MMDVM protocol version: %u, Modem: %s", (unsigned int)frame.protocol, frame.version); return false; } } diff --git a/QnetModem.h b/QnetModem.h index 0e77ab4..0ba29fc 100644 --- a/QnetModem.h +++ b/QnetModem.h @@ -62,7 +62,7 @@ typedef struct version_tag { unsigned char length; unsigned char type; unsigned char protocol; - unsigned char version[252]; + unsigned char version[251]; } SVERSION; typedef struct mmodem_tag {