computation: do not allocate more than needed.
+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.
/* 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;