From 9e4cee22b79ac2da6f54b7949fab59206d1d7e6b Mon Sep 17 00:00:00 2001 From: marshmellow42 Date: Mon, 15 Feb 2016 22:36:51 -0500 Subject: [PATCH] clear char array with each call --- client/cmddata.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/cmddata.c b/client/cmddata.c index f4e16175..c43dfaf1 100644 --- a/client/cmddata.c +++ b/client/cmddata.c @@ -920,6 +920,7 @@ int CmdDetectClockRate(const char *Cmd) char *GetFSKType(uint8_t fchigh, uint8_t fclow, uint8_t invert) { static char fType[8]; + memset(fType, 0x00, 8); char *fskType = fType; if (fchigh==10 && fclow==8){ if (invert) //fsk2a -- 2.39.2