From b579b044177b32dbdf5eaf975d7de4ee19611d67 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Wed, 3 Feb 1999 07:55:40 +0000 Subject: [PATCH] * ltdl.c (lt_dlopenext): tmp would be trashed if shlib_ext was longer than 3 characters --- ChangeLog | 5 +++++ libltdl/ltdl.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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) { -- 2.47.3