about summary refs log tree commit diff
path: root/lr.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-02-27 21:50:26 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-02-27 21:50:26 +0100
commitbe6d93ff12c50de03d4f23221333d1db7bd740b6 (patch)
treebc5d72a435c6b8bf6e36aabfc3e0cb10e2985113 /lr.c
parentf4f0f9c601c7f775723d88bc5bc92e9f47c66d55 (diff)
downloadlr-be6d93ff12c50de03d4f23221333d1db7bd740b6.tar.gz
lr-be6d93ff12c50de03d4f23221333d1db7bd740b6.tar.xz
lr-be6d93ff12c50de03d4f23221333d1db7bd740b6.zip
off by one...
Diffstat (limited to 'lr.c')
-rw-r--r--lr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lr.c b/lr.c
index 50fafd8..fa0c535 100644
--- a/lr.c
+++ b/lr.c
@@ -1803,7 +1803,7 @@ traverse(const char *path)
 		return -1;
 	}
 	memcpy(pathbuf, path, prefixl + 1);
-	pathbuf[prefixl] = 0;
+	pathbuf[prefixl + 1] = 0;
 	return recurse(pathbuf, 0);
 }