* libltdl/ltdl.c (load_deplibs): Insert missing 1st argument to

LT_EMALLOC.
This commit is contained in:
Gary V. Vaughan 2001-08-05 16:01:56 +00:00
parent 11fdf927b4
commit 3539a1bf85
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-08-05 Gary V. Vaughan <gary@gnu.org>
* libltdl/ltdl.c (load_deplibs): Insert missing 1st argument to
LT_EMALLOC.
2001-08-05 Tim Van Holder <tim.van.holder@pandora.be>
* ltdl.m4: Canonicalize descriptive text used with

View File

@ -2326,8 +2326,9 @@ load_deplibs (handle, deplibs)
if (strncmp(p, "-l", 2) == 0)
{
size_t name_len = 3+ /* "lib" */ LT_STRLEN (p + 2);
name = LT_EMALLOC (1+ name_len);
sprintf (name, "lib%s", p+2);
name = LT_EMALLOC (char, 1+ name_len);
if (name)
sprintf (name, "lib%s", p+2);
}
else
name = lt_estrdup(p);