summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
Diffstat (limited to 'ldso')
-rw-r--r--ldso/util/ldd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldso/util/ldd.c b/ldso/util/ldd.c
index eb530f4bb..57ed796ee 100644
--- a/ldso/util/ldd.c
+++ b/ldso/util/ldd.c
@@ -123,8 +123,8 @@ static void search_for_named_library(char *name, char *result, const char *path_
}
path_n = path;
- *result = '\0';
for (i = 0; i < count; i++) {
+ *result = '\0';
strcat(result, path_n);
strcat(result, "/");
strcat(result, name);