Fixed another bug with sget mot softzero
This commit is contained in:
@ -192,7 +192,7 @@ static int countWords(char *txt)
|
|||||||
int count = 0;
|
int count = 0;
|
||||||
char *pPtr = txt;
|
char *pPtr = txt;
|
||||||
|
|
||||||
while(pPtr != NULL){
|
while(pPtr != NULL && strlen(pPtr) > 0){
|
||||||
count++;
|
count++;
|
||||||
pPtr = stptok(pPtr,number,sizeof(number)," ");
|
pPtr = stptok(pPtr,number,sizeof(number)," ");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user