X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/7f0d5926362d50ed01ea04af95a1e03777fce47c..43534cbad22da2db2e1b59f9e08f0cadfe0d8d54:/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; }