about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Zle/zle_params.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5f7b44b16..b9010037b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-19  Peter Stephenson  <pws@csr.com>
+
+	* 22448: Src/Zle/zle_params.c: fix typo in get_rbuffer() that
+	could cause crash examining $RBUFFER in completion code.
+
 2006-05-18  Clint Adams  <clint@zsh.org>
 
 	* 22446: Completion/Debian/Command/_bts: acknowledge that
diff --git a/Src/Zle/zle_params.c b/Src/Zle/zle_params.c
index f2fc153f6..dffe57161 100644
--- a/Src/Zle/zle_params.c
+++ b/Src/Zle/zle_params.c
@@ -300,7 +300,8 @@ static char *
 get_rbuffer(UNUSED(Param pm))
 {
     if (zlemetaline != NULL)
-	return dupstrpfx((char *)zleline + zlemetacs, zlemetall - zlemetacs);
+	return dupstrpfx((char *)zlemetaline + zlemetacs,
+			 zlemetall - zlemetacs);
     return zlelineasstring(zleline + zlecs, zlell - zlecs, 0, NULL, NULL, 1);
 }