[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] do not use strdup
From: |
Ralf Wildenhues |
Subject: |
[PATCH] do not use strdup |
Date: |
Mon, 30 Aug 2004 14:32:15 +0200 |
User-agent: |
Mutt/1.4.1i |
Not sure about this one, but I think you want this.
Regards,
Ralf
2004-08-30 Ralf Wildenhues <address@hidden>
* libltdl/ltdl.c: Replace strdup with lt__strdup.
Index: libltdl/ltdl.c
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/ltdl.c,v
retrieving revision 1.206
diff -u -r1.206 ltdl.c
--- libltdl/ltdl.c 30 Aug 2004 11:46:39 -0000 1.206
+++ libltdl/ltdl.c 30 Aug 2004 12:26:53 -0000
@@ -817,7 +817,7 @@
sprintf (name, "lib%s", p+2);
}
else
- name = strdup(p);
+ name = lt__strdup(p);
if (!name)
goto cleanup_names;
@@ -1172,7 +1172,7 @@
&& 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 @@
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;
- [PATCH] do not use strdup,
Ralf Wildenhues <=