aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2021-01-14 19:32:05 +0000
committerJoursoir <chat@joursoir.net>2021-01-14 19:32:05 +0000
commit96b8793a09ccc9f8fa92444d540d77d037475dfe (patch)
tree901fb81491de6ed72b6c3faa504dc7c8f34f6f68 /src/main.c
parent3165436ed14cb353843abf01e9208c088583bc40 (diff)
downloadlock-password-96b8793a09ccc9f8fa92444d540d77d037475dfe.tar.gz
lock-password-96b8793a09ccc9f8fa92444d540d77d037475dfe.tar.bz2
lock-password-96b8793a09ccc9f8fa92444d540d77d037475dfe.zip
refactor generator of password
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);