From d84ac6ab5dcbe47cedae4647f919bc4da8a9dffa Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sun, 9 Jan 2022 11:42:08 -0600 Subject: [PATCH] Change sprintf to snprint in meade.c https://github.com/Hamlib/Hamlib/issues/857 --- rotators/meade/meade.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rotators/meade/meade.c b/rotators/meade/meade.c index cb8feea4c..d1ca6e044 100644 --- a/rotators/meade/meade.c +++ b/rotators/meade/meade.c @@ -446,7 +446,7 @@ static const char *meade_get_info(ROT *rot) struct meade_priv_data *priv = (struct meade_priv_data *)rot->state.priv; rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__); - sprintf(buf, "Meade telescope rotator with LX200 protocol.\nModel: %s", + snprintf(buf, sizeof(buf), "Meade telescope rotator with LX200 protocol.\nModel: %s", priv->product_name); return buf; } @@ -460,7 +460,7 @@ const struct rot_caps meade_caps = ROT_MODEL(ROT_MODEL_MEADE), .model_name = "LX200/Autostar", .mfg_name = "Meade", - .version = "20200610.0", + .version = "20220109.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rot_type = ROT_TYPE_AZEL,