Skip to content
Snippets Groups Projects
Commit 2eafa92f authored by Simon McVittie's avatar Simon McVittie
Browse files

search_ldpath: Don't redundantly truncate prefix


This is exactly what sanitise_ldlibs() does.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 761a6878
Branches
Tags
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
...@@ -479,9 +479,8 @@ search_ldpath (const char *name, const char *ldpath, ld_libs *ldlibs, int i) ...@@ -479,9 +479,8 @@ search_ldpath (const char *name, const char *ldpath, ld_libs *ldlibs, int i)
char *prefix = ldlibs->prefix.path; char *prefix = ldlibs->prefix.path;
size_t plen = ldlibs->prefix.len; size_t plen = ldlibs->prefix.len;
prefix[plen] = '\0';
sanitise_ldlibs(ldlibs); sanitise_ldlibs(ldlibs);
assert( prefix[plen] == '\0' );
LDLIB_DEBUG( ldlibs, DEBUG_SEARCH, LDLIB_DEBUG( ldlibs, DEBUG_SEARCH,
"searching for %s in %s (prefix: %s)", "searching for %s in %s (prefix: %s)",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment