From: Gary V. Vaughan Date: Fri, 30 May 2003 15:25:10 +0000 (+0000) Subject: * libltdl/ltdl.c (argz_insert): Corrected an off by one error when X-Git-Tag: help~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a45bccc70dc807b8cfddc407e0dfd35feced5848;p=thirdparty%2Flibtool.git * libltdl/ltdl.c (argz_insert): Corrected an off by one error when checking that before is not out of range. --- diff --git a/ChangeLog b/ChangeLog index 460601f8c..592e792ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-05-30 Gary V. Vaughan + + * 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 * libltdl/ltdl.c (lt_int_dyld_lib_install_name): Removed unused diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 42da80436..ba9b28799 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -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; {