* libltdl/ltdl.c: Replace strdup with lt__strdup.

This commit is contained in:
Ralf Wildenhues 2004-08-31 10:39:35 +00:00 committed by Gary V. Vaughan
parent c37ec3a1d9
commit 68750b8185
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2004-08-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* libltdl/ltdl.c: Replace strdup with lt__strdup.
2004-08-30 Gary V. Vaughan <gary@gnu.org>
* config/ltmain.in: Double quote even $# for the sake of sh.test.

View File

@ -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;