diff options
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/ldso/dl-elf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/ldso/dl-elf.c b/ldso/ldso/dl-elf.c index 8e21a6549..eda20b569 100644 --- a/ldso/ldso/dl-elf.c +++ b/ldso/ldso/dl-elf.c @@ -162,7 +162,7 @@ search_for_named_library(const char *name, int secure, const char *path_list, } #endif - _dl_memcpy(path, path_list, done); + _dl_memcpy(path, path_list, done+1); /* Unlike ldd.c, don't bother to eliminate double //s */ |