libtool-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Libtool branch, master, updated. v2.2.6-155-geae9d58


From: Eric Blake
Subject: [SCM] GNU Libtool branch, master, updated. v2.2.6-155-geae9d58
Date: Tue, 03 Nov 2009 03:21:07 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  eae9d5832f84c14c69bec01d72d18bee8d38ec0d (commit)
      from  5a46d6e5c1f3bf5165c45f903f39e00ccd2492a2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit eae9d5832f84c14c69bec01d72d18bee8d38ec0d
Author: Eric Blake <address@hidden>
Date:   Mon Nov 2 11:58:28 2009 -0700

    Allow gcc builds with -Wall -Werror.
    
    * libltdl/ltdl.c (try_dlopen): Use strlen rather than LT_STRLEN on
    an array that will never be NULL.
    
    Signed-off-by: Eric Blake <address@hidden>
    Signed-off-by: Ralf Wildenhues <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog      |    6 ++++++
 libltdl/ltdl.c |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index caf125a..057f9a4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-11-02  Eric Blake  <address@hidden>
+
+       Allow gcc builds with -Wall -Werror.
+       * libltdl/ltdl.c (try_dlopen): Use strlen rather than LT_STRLEN on
+       an array that will never be NULL.
+
 2009-11-01  Ralf Wildenhues  <address@hidden>
 
        Fix func_normal_abspath sed script for Solaris.
diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c
index 80b5675..a622357 100644
--- a/libltdl/ltdl.c
+++ b/libltdl/ltdl.c
@@ -1264,7 +1264,7 @@ try_dlopen (lt_dlhandle *phandle, const char *filename, 
const char *ext,
       if (vtable)
        {
          /* name + "." + libext + NULL */
-         archive_name = MALLOC (char, LT_STRLEN (name) + LT_STRLEN (libext) + 
2);
+         archive_name = MALLOC (char, LT_STRLEN (name) + strlen (libext) + 2);
          *phandle = (lt_dlhandle) lt__zalloc (sizeof (struct lt__handle));
 
          if ((*phandle == NULL) || (archive_name == NULL))


hooks/post-receive
-- 
GNU Libtool




reply via email to

[Prev in Thread] Current Thread [Next in Thread]