diff --git a/debian/indi-avalon/changelog b/debian/indi-avalon/changelog index 24b7a12c1..abd9b3328 100644 --- a/debian/indi-avalon/changelog +++ b/debian/indi-avalon/changelog @@ -1,3 +1,9 @@ +indi-avalon (1.13) jammy; urgency=medium + + * Bug fix for MacOS crash reading ParkHomeStatus + + -- Wolfgang Reissenberger Tue, 01 Aug 2023 07:58:23 +0200 + indi-avalon (1.12) bionic; urgency=medium * Adaptions to INDI 1.9 release diff --git a/indi-avalon/lx200stargo.cpp b/indi-avalon/lx200stargo.cpp index b53ef549e..912820fc3 100644 --- a/indi-avalon/lx200stargo.cpp +++ b/indi-avalon/lx200stargo.cpp @@ -516,7 +516,6 @@ bool LX200StarGo::ReadScopeStatus() mountSim(); return true; } - LOG_DEBUG("################################ ReadScopeStatus (start) ################################"); int x, y; @@ -738,7 +737,7 @@ void LX200StarGo::getStarGoBasicData() else IDSetText(&MountFirmwareInfoTP, nullptr); - char parkHomeStatus[1] = {0}; + char parkHomeStatus[AVALON_RESPONSE_BUFFER_LENGTH] = {0}; if (getParkHomeStatus(parkHomeStatus)) { SetParked(strcmp(parkHomeStatus, "2") == 0); @@ -1434,7 +1433,7 @@ bool LX200StarGo::getParkHomeStatus (char* status) LOGF_DEBUG("%s: response: %s", __FUNCTION__, response); - if (! sscanf(response, "p%32s[012AB]", status)) + if (! sscanf(response, "p%1[012AB]", status)) { LOGF_ERROR("Unexpected park home status response '%s'.", response); return false;