aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--TODO.md3
-rw-r--r--nissy-2.0beta3.tar.gzbin53146 -> 53146 bytes
-rw-r--r--src/alg.c2
-rw-r--r--src/commands.c4
4 files changed, 3 insertions, 6 deletions
diff --git a/TODO.md b/TODO.md
index 0ed9c21..d035dd9 100644
--- a/TODO.md
+++ b/TODO.md
@@ -3,9 +3,6 @@
3This is a list of things that I would like to add or change at some point. 3This is a list of things that I would like to add or change at some point.
4It's more of a personal reminder than anything else. 4It's more of a personal reminder than anything else.
5 5
6## Bugs
7* Segfault on "nissy solve -s 10U" (no space between 10 and U)
8
9## Commands 6## Commands
10 7
11### Commands that are available in nissy 1.0, but not in this version (yet): 8### Commands that are available in nissy 1.0, but not in this version (yet):
diff --git a/nissy-2.0beta3.tar.gz b/nissy-2.0beta3.tar.gz
index e35868f..bd7dd17 100644
--- a/nissy-2.0beta3.tar.gz
+++ b/nissy-2.0beta3.tar.gz
Binary files differ
diff --git a/src/alg.c b/src/alg.c
index 354bdb6..cd6834c 100644
--- a/src/alg.c
+++ b/src/alg.c
@@ -231,7 +231,7 @@ new_alg(char *str)
231 } 231 }
232 232
233 move_read = false; 233 move_read = false;
234 for (j = 0; j < NMOVES; j++) { 234 for (j = U; j < NMOVES; j++) {
235 if (str[i] == move_string(j)[0] || 235 if (str[i] == move_string(j)[0] ||
236 (str[i] >= 'a' && str[i] <= 'z' && 236 (str[i] >= 'a' && str[i] <= 'z' &&
237 str[i] == move_string(j)[0]-('A'-'a') && j<=B)) { 237 str[i] == move_string(j)[0]-('A'-'a') && j<=B)) {
diff --git a/src/commands.c b/src/commands.c
index b089a1c..48f5eba 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -322,8 +322,8 @@ read_scramble(int c, char **v, CommandArgs *args)
322 unsigned int j; 322 unsigned int j;
323 char *algstr; 323 char *algstr;
324 324
325 if (new_alg(v[0])->len == 0) { 325 if (c < 1 || new_alg(v[0])->len == 0) {
326 fprintf(stderr, "%s: moves or option unrecognized\n", v[0]); 326 fprintf(stderr, "Error reading scramble\n");
327 return false; 327 return false;
328 } 328 }
329 329

Generated with cgit - Back to sebastiano.tronto.net