libtool-patches
[Top][All Lists]
Advanced

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

Re: libltdl - PATCH


From: Gary V. Vaughan
Subject: Re: libltdl - PATCH
Date: Thu, 20 Jun 2002 22:03:18 +0000
User-agent: Mutt/1.4i

On Mon, Jun 17, 2002 at 04:00:44PM +0200, Lutz Müller wrote:
> +2002-06-17  Lutz Müller  <address@hidden>
> +
> +       * libltdl/ltdl.c: Correct usage of strncpy.
> +
>  2001-09-21  Gary V. Vaughan  <address@hidden>
> 
>         * libltdl/ltdl.c: Added support for dmalloc, and uncovered some
>
> [[snip]]
> 
> Please approve and commit to CVS.

I am committing the following equivalent patch to HEAD and branch-1-4:

--- libltdl/ltdl.c~     Tue May 28 16:25:06 2002
+++ libltdl/ltdl.c      Thu Jun 20 20:55:08 2002
@@ -2199,7 +2199,9 @@
            goto cleanup;
        }

-       strncpy (filename, dir_name, lendir);
+       assert (filenamesize > lendir);
+       strcpy (filename, dir_name);
+
        if (base_name && *base_name)
          {
            if (filename[lendir -1] != '/')

Hope that helps!

Cheers,
        Gary.
-- 
  ())_. Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
  ( '/  Research Scientist  http://www.oranda.demon.co.uk       ,_())____
  / )=  GNU Hacker          http://www.gnu.org/software/libtool  \'      `&
`(_~)_  Tech' Author        http://sources.redhat.com/autobook   =`---d__/



reply via email to

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