X-Git-Url: https://harishankar.org/repos/?a=blobdiff_plain;f=wordblox.c;fp=wordblox.c;h=0cbb8049841b471e8aea76c67b6baa517e8e0898;hb=d27505add68f9df169f2135a416bdf52ce9af8c3;hp=8ab98915766d33bce666a51a0ab0baafc95a6b2e;hpb=817fe9c8d7535a465ed42153c550ceef8390ffac;p=wordblah.git diff --git a/wordblox.c b/wordblox.c index 8ab9891..0cbb804 100644 --- a/wordblox.c +++ b/wordblox.c @@ -107,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;