about summary refs log tree commit diff
path: root/Src/prompt.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-10-22 10:22:16 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-10-22 10:22:16 +0000
commit6567e77a4e474d9fcc90aeaf645598a79462f3c1 (patch)
tree705323908ffee8cc22cfba297c7a4db368a53440 /Src/prompt.c
parent756cfc08e22119925431acc1cc66602acce42632 (diff)
downloadzsh-6567e77a4e474d9fcc90aeaf645598a79462f3c1.tar.gz
zsh-6567e77a4e474d9fcc90aeaf645598a79462f3c1.tar.xz
zsh-6567e77a4e474d9fcc90aeaf645598a79462f3c1.zip
24007: prompt allocation and use of "shout"
Diffstat (limited to 'Src/prompt.c')
-rw-r--r--Src/prompt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/prompt.c b/Src/prompt.c
index b4b55a0ea..57af41b03 100644
--- a/Src/prompt.c
+++ b/Src/prompt.c
@@ -181,10 +181,10 @@ promptexpand(char *s, int ns, char *rs, char *Rs)
     bp1 = NULL;
     truncwidth = 0;
     putpromptchar(1, '\0');
-    addbufspc(1);
+    addbufspc(2);
     if(dontcount)
 	*bp++ = Outpar;
-    *bp = 0;
+    *bp = '\0';
     if (!ns) {
 	/* If zero, Inpar, Outpar and Nularg should be removed. */
 	for (bp = buf; *bp; ) {