mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-20 05:13:22 -07:00
Khorben/warnings (#519)
* Fix warnings and missing #include for <ctype.h> * Avoid a warning in client/util.c
This commit is contained in:
parent
0f112d6f19
commit
3ded0f97d3
8 changed files with 14 additions and 12 deletions
|
@ -40,14 +40,14 @@ int split(char *str, char *arr[MAX_ARGS]){
|
|||
int wordCnt = 0;
|
||||
|
||||
while(1){
|
||||
while(isspace(str[beginIndex])){
|
||||
while(isspace((unsigned char)str[beginIndex])){
|
||||
++beginIndex;
|
||||
}
|
||||
if(str[beginIndex] == '\0') {
|
||||
break;
|
||||
}
|
||||
endIndex = beginIndex;
|
||||
while (str[endIndex] && !isspace(str[endIndex])){
|
||||
while (str[endIndex] && !isspace((unsigned char)str[endIndex])){
|
||||
++endIndex;
|
||||
}
|
||||
int len = endIndex - beginIndex;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue