aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index fd1345b..8639597 100644
--- a/src/main.c
+++ b/src/main.c
@@ -293,8 +293,8 @@ static void cmd_generate(int argc, char *argv[])
}
// generate password
- char gpass[MAXLEN_PASSWORD];
- generatePassword(gpass, pass_length, MAXLEN_PASSWORD);
+ char gpass[pass_length];
+ generatePassword(gpass, pass_length);
insertPass(path_to_password, gpass, flag_copy);
if(!flag_copy) printf("Generated password: %s\n", gpass);