diff options
author | Nicholas Tay <nick@windblume.net> | 2022-01-13 23:23:22 +1100 |
---|---|---|
committer | Nicholas Tay <nick@windblume.net> | 2022-01-13 23:23:22 +1100 |
commit | 3ab3302c51960212b3ed51d92da140e8f93105ce (patch) | |
tree | 9502c6eb56db98d098853eb2ee4a9dc9b5ea924c /passgen.c | |
parent | a6de6290a560c304a4e938bbd1a584a1c710e15e (diff) | |
download | passgen-3ab3302c51960212b3ed51d92da140e8f93105ce.tar.gz passgen-3ab3302c51960212b3ed51d92da140e8f93105ce.tar.bz2 passgen-3ab3302c51960212b3ed51d92da140e8f93105ce.zip |
Fix + add error message
Diffstat (limited to 'passgen.c')
-rw-r--r-- | passgen.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -131,6 +131,7 @@ int main(int argc, char *argv[]) */ grammar = build_grammar(atoi(argv[1]), atoi(argv[2]), atoi(argv[3]), &grammar_size); if (grammar == NULL) { + fprintf(stderr, "ERROR: Could not initialise memory for password grammar.\n"); err = true; goto cleanup; } @@ -147,7 +148,7 @@ int main(int argc, char *argv[]) password[grammar_size] = 0; if (!init_rng()) { - fprintf(stderr, "ERROR: Could not initialise RNG."); + fprintf(stderr, "ERROR: Could not initialise RNG.\n"); err = true; goto cleanup; } |