diff --git a/drivers/focuser/celestronauxpacket.cpp b/drivers/focuser/celestronauxpacket.cpp index f0aec3e0d3..3139fac7b9 100644 --- a/drivers/focuser/celestronauxpacket.cpp +++ b/drivers/focuser/celestronauxpacket.cpp @@ -160,7 +160,7 @@ bool Communicator::sendPacket(int portFD, Target dest, Command cmd, buffer data) bool Communicator::readPacket(int portFD, Packet &reply) { - char rxbuf[] = {0}; + char rxbuf[1] = {0}; int nr = 0, ttyrc = 0; // look for header while(rxbuf[0] != Packet::AUX_HDR)