]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (argz_insert): Corrected an off by one error when
authorGary V. Vaughan <gary@gnu.org>
Fri, 30 May 2003 15:40:50 +0000 (15:40 +0000)
committerGary V. Vaughan <gary@gnu.org>
Fri, 30 May 2003 15:40:50 +0000 (15:40 +0000)
checking that before is not out of range.

ChangeLog
libltdl/ltdl.c

index 5fe509ba6c28b79c98914ec44d675f139e4adc5e..2a914546113230754e38e30bd95d7d37d851b945 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-05-30  Gary V. Vaughan  <gary@gnu.org>
+
+       * libltdl/ltdl.c (argz_insert): Corrected an off by one error when
+       checking that before is not out of range.
+
 2003-05-29  Gary V. Vaughan  <gary@gnu.org>
 
        * libltdl/ltdl.c (lt_int_dyld_lib_install_name): Removed unused
index 42da8043687f38984c8ecd47dc6ef49631534011..ba9b287996adaecb1665835b2013f30bd1989709 100644 (file)
@@ -682,7 +682,7 @@ argz_insert (pargz, pargz_len, before, entry)
   /* This probably indicates a programmer error, but to preserve
      semantics, scan back to the start of an entry if BEFORE points
      into the middle of it.  */
-  while ((before >= *pargz) && (before[-1] != LT_EOS_CHAR))
+  while ((before > *pargz) && (before[-1] != LT_EOS_CHAR))
     --before;
 
   {