From: Ramakrishnan Muthukrishnan Date: Tue, 11 Jan 2022 14:51:19 +0000 (+0530) Subject: null the end of string X-Git-Url: https://git.rkrishnan.org/Site/Content/simplejson/status?a=commitdiff_plain;h=4c7a2cd4fc63f2806a0d0fe771e89ad8ed330f2f;p=pihpsdr.git null the end of string --- diff --git a/rigctl.c b/rigctl.c index 99cd219..100c98f 100644 --- a/rigctl.c +++ b/rigctl.c @@ -955,7 +955,7 @@ gboolean parse_extended_cmd(char *command, CLIENT *client) { // send reply back sprintf(reply, "ZZAG%03d;", (int)(active_receiver->volume * 100.0)); send_resp(client->fd, reply); - } else { + } else if (command[7] == ';') { command[7] = '\0'; int gain = atoi(&command[4]); active_receiver->volume = (double)gain / 100.0;