aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/npass/npass.c7
1 files changed, 4 insertions, 3 deletions
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)