From: marshmellow42 Date: Tue, 16 Feb 2016 03:36:51 +0000 (-0500) Subject: clear char array with each call X-Git-Tag: v2.3.0~6^2~1 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/9e4cee22b79ac2da6f54b7949fab59206d1d7e6b?ds=sidebyside;hp=-c clear char array with each call --- 9e4cee22b79ac2da6f54b7949fab59206d1d7e6b 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