diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-04-10 17:01:09 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-04-10 17:38:03 +0530 |
commit | b5a7909bc8dacb13cbc4502c9586742292fc7152 (patch) | |
tree | 7648975eff06c82858b7131f2b1223e26232186d | |
parent | d357b93fb422eaa59f84c52f6156748f2acf8dab (diff) |
libnpass: define PASS_DEF_LEN
-rw-r--r-- | include/libnpass/libnpass.h | 2 | ||||
-rw-r--r-- | src/npass/npass.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/libnpass/libnpass.h b/include/libnpass/libnpass.h index 130954d..f1e3d74 100644 --- a/include/libnpass/libnpass.h +++ b/include/libnpass/libnpass.h @@ -2,6 +2,8 @@ #include <dirent.h> #include <linux/limits.h> +#define PASS_DEF_LEN 32 + typedef enum { PASS_GEN_DIGIT = 0, PASS_GEN_ALNUM = 1, diff --git a/src/npass/npass.c b/src/npass/npass.c index 4a52b7d..532ef47 100644 --- a/src/npass/npass.c +++ b/src/npass/npass.c @@ -162,7 +162,7 @@ static int add(const char *path) static int gen(int argc, char *argv[]) { char *pass; int opt, r = 0; - size_t len = 30; + size_t len = PASS_DEF_LEN; pass_gen_t gen = PASS_GEN_GRAPH; while ((opt = getopt(argc, argv, "dagl:")) != -1) { |