summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--lr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lr.c b/lr.c
index 0df5d20..f9ca8c1 100644
--- a/lr.c
+++ b/lr.c
@@ -1801,6 +1801,7 @@ traverse(const char *path)
 		return -1;
 	}
 	memcpy(pathbuf, path, prefixl + 1);
+	pathbuf[prefixl] = 0;
 	return recurse(pathbuf, 0);
 }