Reveal solution functionality completed
[wordblah.git] / wordblox.c
index fae8b83..0cbb804 100644 (file)
@@ -1,7 +1,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <time.h>
-#include <stdbool.h>
 #include <string.h>
 #include <ctype.h>
 #include <unistd.h>
@@ -108,6 +107,8 @@ void do_set_clue_word (Puzzle *p, enum ORIENTATION orient)
        index = get_num ();
        printf (INPUT_CLUE);
        fgets (clue, MAX_CLUE_LENGTH, stdin);
+       if (strlen (clue) == 1)
+               return;
        char* cl = strtok (clue, "\n");
        
        bool res;