diff options
author | Joursoir <chat@joursoir.net> | 2021-01-14 19:32:05 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-01-14 19:32:05 +0000 |
commit | 96b8793a09ccc9f8fa92444d540d77d037475dfe (patch) | |
tree | 901fb81491de6ed72b6c3faa504dc7c8f34f6f68 /src/main.c | |
parent | 3165436ed14cb353843abf01e9208c088583bc40 (diff) | |
download | lock-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |