diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libnpass/libnpass.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libnpass/libnpass.c b/src/libnpass/libnpass.c index a918e77..6e4c874 100644 --- a/src/libnpass/libnpass.c +++ b/src/libnpass/libnpass.c @@ -16,6 +16,7 @@ #include "util.h" #define DEF_PASS_DIR "pass" +#define DEF_STOR_LEN 64 #define FPR_MAX NAME_MAX static char pass_dir[PATH_MAX] = {0}; @@ -197,7 +198,7 @@ int readstore_all(const char *path, struct store **stor) { void *p; size_t i; DIR *dirp; - size_t len = PATH_MAX; + size_t len = DEF_STOR_LEN; *stor = malloc(sizeof(struct store) * len); if (!*stor) |