X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/bf7ebb7b208a3b95f28a9a40f2e560a56e121794..45095b01789279d8608a52c805a642e8b6a3ac7d:/client/cmdcrc.c diff --git a/client/cmdcrc.c b/client/cmdcrc.c index 05365298..fddf0ac4 100644 --- a/client/cmdcrc.c +++ b/client/cmdcrc.c @@ -44,9 +44,10 @@ int split(char *str, char *arr[MAX_ARGS]){ while(isspace(str[beginIndex])){ ++beginIndex; } - if(str[beginIndex] == '\0') + if(str[beginIndex] == '\0') { break; - endIndex = beginIndex; + } + endIndex = beginIndex; while (str[endIndex] && !isspace(str[endIndex])){ ++endIndex; }