From: Alexandre Oliva Date: Wed, 3 Feb 1999 07:55:40 +0000 (+0000) Subject: * ltdl.c (lt_dlopenext): tmp would be trashed if shlib_ext was X-Git-Tag: release-1-2f~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b579b044177b32dbdf5eaf975d7de4ee19611d67;p=thirdparty%2Flibtool.git * ltdl.c (lt_dlopenext): tmp would be trashed if shlib_ext was longer than 3 characters --- diff --git a/ChangeLog b/ChangeLog index b0b43c7cd..06dd298fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-02-03 Alexandre Oliva + + * ltdl.c (lt_dlopenext): tmp would be trashed if shlib_ext was + longer than 3 characters + 1999-01-28 Gary V. Vaughan * ltmain.in: Reverted this change of Alexandre's from the diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 0e63cce09..1413741b3 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -1245,8 +1245,9 @@ lt_dlopenext (filename) last_error = memory_error; return 0; } - } - tmp[len] = '\0'; + strcpy(tmp, filename); + } else + tmp[len] = '\0'; strcat(tmp, shlib_ext); handle = lt_dlopen(tmp); if (handle) {