diff options
-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) { |