summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-11-24 01:18:30 +0000
committermidipix <writeonce@midipix.org>2019-11-24 06:09:07 +0000
commit76a6275058f0095751f4c2972b85d649ec0724be (patch)
tree2fd91ac6049ac95cb8a660de1f4a2177c344b7a8 /src/core
parenteeaed5c86e3cd1bd6110980ddb6b34ed03fc261b (diff)
downloadsltdl-76a6275058f0095751f4c2972b85d649ec0724be.tar.bz2
sltdl-76a6275058f0095751f4c2972b85d649ec0724be.tar.xz
lt_dlinsertsearchdir(): properly adjust lt_pathv[].
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lt_path.c2
1 files changed, 1 insertions, 1 deletions
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;