]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltdl.c (lt_dlopenext): tmp would be trashed if shlib_ext was
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Wed, 3 Feb 1999 07:55:40 +0000 (07:55 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Wed, 3 Feb 1999 07:55:40 +0000 (07:55 +0000)
longer than 3 characters

ChangeLog
libltdl/ltdl.c

index b0b43c7cd75560136a45e570b6d9490f0b6c11de..06dd298fa306c2bb1527ca03b6fe6d90e82821c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-02-03  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * ltdl.c (lt_dlopenext): tmp would be trashed if shlib_ext was
+       longer than 3 characters
+
 1999-01-28  Gary V. Vaughan  <gvaughan@oranda.demon.co.uk>
 
        * ltmain.in: Reverted this change of Alexandre's from the
index 0e63cce09ec8dc9699509d97fcfd2a9b0f60e045..1413741b33583e5d2751bf1ec9aacf3942300150 100644 (file)
@@ -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) {