summaryrefslogtreecommitdiff
path: root/ldso/util/ldd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldso/util/ldd.c')
-rw-r--r--ldso/util/ldd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ldso/util/ldd.c b/ldso/util/ldd.c
index 9be97cce0..a73d34070 100644
--- a/ldso/util/ldd.c
+++ b/ldso/util/ldd.c
@@ -233,6 +233,7 @@ static void search_for_named_library(char *name, char *result, const char *path_
while((path_n=strstr(path_n, "//"))) {
i = strlen(path_n);
memmove(path_n, path_n+1, i-1);
+ *(path_n + i - 1)='\0';
}
/* Replace colons with zeros in path_list and count them */