diff --git a/rotators/celestron/celestron.c b/rotators/celestron/celestron.c index 0b3ef084d..ddeea4959 100644 --- a/rotators/celestron/celestron.c +++ b/rotators/celestron/celestron.c @@ -136,7 +136,7 @@ celestron_set_position(ROT *rot, azimuth_t az, elevation_t el) tube is perpendicular to the azimuth axis. */ - sprintf(cmdstr, "B%04X,%04X", + snprintf(cmdstr, sizeof(cmdstr), "B%04X,%04X", (unsigned)((az / 360.) * 65535), (unsigned)((el / 360.) * 65535)); @@ -198,7 +198,7 @@ celestron_stop(ROT *rot) static const char * celestron_get_info(ROT *rot) { - static char info[16]; + static char info[32]; char str[8]; rig_debug(RIG_DEBUG_TRACE, "%s called\n", __func__); @@ -208,7 +208,7 @@ celestron_get_info(ROT *rot) return NULL; } - sprintf(info, "V%c.%c", str[0], str[1]); + snprintf(info, sizeof(info), "V%c.%c", str[0], str[1]); return info; } @@ -231,7 +231,7 @@ const struct rot_caps nexstar_rot_caps = ROT_MODEL(ROT_MODEL_NEXSTAR), .model_name = "NexStar", // Any Celestron starting with version 1.2 .mfg_name = "Celestron", - .version = "20110821.0", + .version = "20220109.0", .copyright = "LGPL", .status = RIG_STATUS_UNTESTED, .rot_type = ROT_TYPE_AZEL,