of the end of user_search_path correctly.
2001-08-13 Gary V. Vaughan <gary@gnu.org>
+ * libltdl/ltdl.c (lt_dlinsertsearchdir): Calculate the address
+ of the end of user_search_path correctly.
+
* libltdl/ltdl.c (rpl_argz_stringify): New fallback implementation.
* ltdl.m4 (AC_LTDL_FUNC_ARGZ): Test for argz_stringify in libc.
* libltdl/ltdl.c (lt_argz_insertinorder): Renamed from
{
LT_DLMUTEX_LOCK ();
if ((before < user_search_path)
- || (before >= LT_STRLEN (user_search_path)))
+ || (before >= user_search_path + LT_STRLEN (user_search_path)))
{
LT_DLMUTEX_UNLOCK ();
LT_DLMUTEX_SETERROR (LT_DLSTRERROR (INVALID_POSITION));