From 3d68ebbf54458b55e5cd970f52dfbff189e50d2c Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 22 Jan 2018 15:24:11 +0100 Subject: [PATCH] Fix off-by-one in condition reassert() Signed-off-by: Joachim Nilsson --- src/cond-w.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cond-w.c b/src/cond-w.c index 2f035dc3..2c44dbb1 100644 --- a/src/cond-w.c +++ b/src/cond-w.c @@ -212,7 +212,7 @@ static int reassert(const char *fpath, const struct stat *sb, int tflg, struct F return 1; } - nm += sizeof(COND_DIR) + 1; + nm += sizeof(COND_DIR); _d("Reasserting %s => %s", fpath, nm); cond_set(nm);