diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-07-17 05:34:33 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-07-17 05:34:33 +0000 |
commit | ea9de29581fb04f5b85065542faf4ce42ee41808 (patch) | |
tree | 59fabf3ee6191ed937b73519f489e121ec28cef5 | |
parent | 070720ad2fc4efb5ee8d8c56f76e467242bad2a8 (diff) |
search_for_named_library forgot to wipe the target string, so each time
around the loop it was getting bigger...
-rw-r--r-- | ldso/util/ldd.c | 2 |
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); |