From b466a2d4272bab476e81f1c1cb119963f8c5e285 Mon Sep 17 00:00:00 2001 From: Mark Koennecke Date: Thu, 10 Apr 2014 14:24:38 +0200 Subject: [PATCH] Fixed another bug with sget mot softzero --- sicsget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sicsget.c b/sicsget.c index c4ecc55c..69e6dbd0 100644 --- a/sicsget.c +++ b/sicsget.c @@ -192,7 +192,7 @@ static int countWords(char *txt) int count = 0; char *pPtr = txt; - while(pPtr != NULL){ + while(pPtr != NULL && strlen(pPtr) > 0){ count++; pPtr = stptok(pPtr,number,sizeof(number)," "); }