From a45bccc70dc807b8cfddc407e0dfd35feced5848 Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Fri, 30 May 2003 15:25:10 +0000 Subject: [PATCH] * libltdl/ltdl.c (argz_insert): Corrected an off by one error when checking that before is not out of range. --- ChangeLog | 5 +++++ libltdl/ltdl.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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; { -- 2.47.2