From b1ea5e8d71bc6bcadde4ffd65584658a62a11b65 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Wed, 10 Apr 2024 06:52:59 +0530 Subject: npass/ls/depth_state_len: NAME_MAX -> 16 --- src/npass/npass.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/npass/npass.c b/src/npass/npass.c index b328d01..9323879 100644 --- a/src/npass/npass.c +++ b/src/npass/npass.c @@ -10,8 +10,9 @@ #define invalid_usage_err_ret() \ err_ret(1, "invalid usage, try pass help") -#define BLUE "\e[0;34m" -#define NCOL "\e[0m" +#define DEF_DEPTTH 16; +#define BLUE "\e[0;34m" +#define NCOL "\e[0m" typedef enum { DEPTH_ITS_OVER = 0, @@ -62,7 +63,7 @@ int ls(const char *path, size_t depth, depth_state_t *depth_state) { int i, j, len; struct store *stor; char new_path[PATH_MAX]; - static size_t depth_state_len = NAME_MAX; + static size_t depth_state_len = DEF_DEPTTH; len = readstore_all(path, &stor); if (len < 0) -- cgit v1.2.3