From 68750b818577c0714ce33961b552b97a9467d2c6 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Tue, 31 Aug 2004 10:39:35 +0000 Subject: [PATCH] * libltdl/ltdl.c: Replace strdup with lt__strdup. --- ChangeLog | 4 ++++ libltdl/ltdl.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5f20e2707..6ba135421 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-08-31 Ralf Wildenhues + + * libltdl/ltdl.c: Replace strdup with lt__strdup. + 2004-08-30 Gary V. Vaughan * config/ltmain.in: Double quote even $# for the sake of sh.test. diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 25fe418aa..78efa112f 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -817,7 +817,7 @@ load_deplibs (lt_dlhandle handle, char *deplibs) sprintf (name, "lib%s", p+2); } else - name = strdup(p); + name = lt__strdup(p); if (!name) goto cleanup_names; @@ -1172,7 +1172,7 @@ try_dlopen (lt_dlhandle *phandle, const char *filename) && dlname && (last_libname = strrchr (dlname, ' ')) != 0) { - last_libname = strdup (last_libname + 1); + last_libname = lt__strdup (last_libname + 1); if (!last_libname) { ++errors; @@ -1834,7 +1834,7 @@ lt_dlpath_insertdir (char **ppath, char *before, const char *dir) assert (!before); /* BEFORE cannot be set without PPATH. */ assert (dir); /* Without DIR, don't call this function! */ - *ppath = strdup (dir); + *ppath = lt__strdup (dir); if (*ppath == 0) ++errors; -- 2.47.2