summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--Config/version.mk4
-rw-r--r--Src/utils.c5
3 files changed, 11 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 19b1d3765..960b02c6e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-19  Peter Stephenson  <pws@csr.com>
+
+	* Greg Klanderman: 26972: Src/utils.c: fix problem ni 26964.
+
 2009-05-17  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
 	* Greg Klanderman: 26964 (modified): Src/utils.c,
@@ -11724,5 +11728,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.4688 $
+* $Revision: 1.4689 $
 *****************************************************
diff --git a/Config/version.mk b/Config/version.mk
index 909dcca37..992c84649 100644
--- a/Config/version.mk
+++ b/Config/version.mk
@@ -27,5 +27,5 @@
 # This must also serve as a shell script, so do not add spaces around the
 # `=' signs.
 
-VERSION=4.3.9-dev-3
-VERSION_DATE='April 24, 2009'
+VERSION=4.3.9-dev-4
+VERSION_DATE='May 18, 2009'
diff --git a/Src/utils.c b/Src/utils.c
index d30dacca8..e7a4595b8 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -1225,7 +1225,10 @@ preprompt(void)
 	str = promptexpand(eolmark, 1, NULL, NULL, NULL);
 	countprompt(str, &w, 0, -1);
 	opts[PROMPTPERCENT] = percents;
-	fprintf(shout, "%s%*s\r", str, (int)columns - w - !hasxn, "");
+	zputs(str, shout);
+	for (w = (int)columns - w - !hasxn; w > 0; w--)
+	    putc(' ', shout);
+	putc('\r', shout);
 	free(str);
     }