From ea9de29581fb04f5b85065542faf4ce42ee41808 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 17 Jul 2001 05:34:33 +0000 Subject: search_for_named_library forgot to wipe the target string, so each time around the loop it was getting bigger... --- ldso/util/ldd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3