diff options
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -59,7 +59,8 @@ int main(int argc, char **argv) { int len = 0; for(char *pos = text; pos < end; pos++) { if(isblank(*pos)) { - user->words++; + if(len) + user->words++; word[len] = '\0'; len = 0; *word = '\0'; |