]> 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:25:10 +0000 (15:25 +0000)
committerGary V. Vaughan <gary@gnu.org>
Fri, 30 May 2003 15:25:10 +0000 (15:25 +0000)
checking that before is not out of range.

ChangeLog
libltdl/ltdl.c

index 460601f8c7e3fceee0cab78c62a7c3df913a0cd3..592e792ae1c56adb154222263210844f8d549135 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;
 
   {