From 76a6275058f0095751f4c2972b85d649ec0724be Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 24 Nov 2019 01:18:30 +0000 Subject: lt_dlinsertsearchdir(): properly adjust lt_pathv[]. --- src/core/lt_path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lt_path.c b/src/core/lt_path.c index 5d58b03..6d72d85 100644 --- a/src/core/lt_path.c +++ b/src/core/lt_path.c @@ -209,7 +209,7 @@ int lt_dlinsertsearchdir(const char * mark, const char * path) if (pathv < lt_vmark) lt_upath[offset + slen] = ':'; - pathv[0] = pathv[-1]; + pathv[0] = pathv[-1] + alen + 1; if (pathv[-1] == mark) { offset = mark - lt_vpath; -- cgit v1.2.3