Fixed another bug with sget mot softzero

This commit is contained in:
2014-04-10 14:24:38 +02:00
parent 8e1ac545ce
commit b466a2d427

View File

@ -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)," ");
} }