From: d18c7db Date: Thu, 22 Oct 2009 20:21:12 +0000 (+0000) Subject: replaced strncasecmp with strcmp to get rid of compile errors X-Git-Tag: v1.0.0~459 X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/ec81f90ec3a65d1183dc50c4c47405e3f43e1cb1 replaced strncasecmp with strcmp to get rid of compile errors --- diff --git a/winsrc/command.cpp b/winsrc/command.cpp index b2258640..e94c234c 100644 --- a/winsrc/command.cpp +++ b/winsrc/command.cpp @@ -2841,13 +2841,13 @@ static void CmdSetMux(char *str) { UsbCommand c; c.cmd = CMD_SET_ADC_MUX; - if(strncasecmp(str, "lopkd", 5) == 0) { + if(strcmp(str, "lopkd") == 0) { c.ext1 = 0; - } else if(strncasecmp(str, "loraw", 5) == 0) { + } else if(strcmp(str, "loraw") == 0) { c.ext1 = 1; - } else if(strncasecmp(str, "hipkd", 5) == 0) { + } else if(strcmp(str, "hipkd") == 0) { c.ext1 = 2; - } else if(strncasecmp(str, "hiraw", 5) == 0) { + } else if(strcmp(str, "hiraw") == 0) { c.ext1 = 3; } SendCommand(&c, FALSE);