aboutsummaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/commands.c4
1 files changed, 2 insertions, 2 deletions
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