aboutsummaryrefslogtreecommitdiff
path: root/passgen.c
diff options
context:
space:
mode:
authorNicholas Tay <nick@windblume.net>2022-01-13 23:23:22 +1100
committerNicholas Tay <nick@windblume.net>2022-01-13 23:23:22 +1100
commit3ab3302c51960212b3ed51d92da140e8f93105ce (patch)
tree9502c6eb56db98d098853eb2ee4a9dc9b5ea924c /passgen.c
parenta6de6290a560c304a4e938bbd1a584a1c710e15e (diff)
downloadpassgen-3ab3302c51960212b3ed51d92da140e8f93105ce.tar.gz
passgen-3ab3302c51960212b3ed51d92da140e8f93105ce.tar.bz2
passgen-3ab3302c51960212b3ed51d92da140e8f93105ce.zip
Fix + add error message
Diffstat (limited to 'passgen.c')
-rw-r--r--passgen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/passgen.c b/passgen.c
index d0a8dc9..e759766 100644
--- a/passgen.c
+++ b/passgen.c
@@ -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;
}