]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (tryall_dlopen_module): Fix string length
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 1 Sep 2007 08:10:02 +0000 (08:10 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 1 Sep 2007 08:10:02 +0000 (08:10 +0000)
computation: do not allocate more than needed.

ChangeLog
libltdl/ltdl.c

index 0e15ec6ddab284324b80f85fefc7c539b9223893..5e986b746fe8475ba9221be8dbf88f8dc4a65cc9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-09-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * libltdl/ltdl.c (tryall_dlopen_module): Fix string length
+       computation: do not allocate more than needed.
+
 2007-08-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * libltdl/loaders/preopen.c (vm_close): `module' is unused.
index 08027dbba019c31e38a1cb509386fc5af9f7ffb4..dc07761ec97a0926503863374e23810650d71189 100644 (file)
@@ -484,7 +484,7 @@ tryall_dlopen_module (lt_dlhandle *handle, const char *prefix,
 
   /* Allocate memory, and combine DIRNAME and MODULENAME into it.
      The PREFIX (if any) is handled below.  */
-  filename  = MALLOC (char, dirname_len + 1 + filename_len + 1);
+  filename  = MALLOC (char, filename_len + 1);
   if (!filename)
     return 1;