From 63357389d673d031b3a37acc5bba374a93920ed2 Mon Sep 17 00:00:00 2001 From: hiteki Date: Sun, 21 Jun 2020 19:10:21 +0200 Subject: [PATCH] get_dcd responds without crashing #323 --- rigs/uniden/uniden.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rigs/uniden/uniden.c b/rigs/uniden/uniden.c index 2d2f56d0d..b19c07ab3 100644 --- a/rigs/uniden/uniden.c +++ b/rigs/uniden/uniden.c @@ -229,8 +229,8 @@ transaction_write: #endif /* Special case for SQuelch */ - if (replystr && !memcmp(cmdstr, "SQ", 2) && (replystr[0] == '-' - || replystr[0] == '+')) + if (replystr && !memcmp(cmdstr, "SQ", 2) && (data[0] == '-' + || data[0] == '+')) { retval = RIG_OK; goto transaction_quit;