summaryrefslogtreecommitdiff
path: root/bin/ksh/shf.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-10-29 04:09:22 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-10-29 04:09:22 +0000
commit48e72123566c3d7650be6571b80f9f70b41c6724 (patch)
tree0d23d0de2abdb77ca3971067b7984db08dcd8da6 /bin/ksh/shf.c
parentf3f5bf3ebf1aaee9195c0d49323beb781e0c1676 (diff)
Bug fixes from pdksh-unstable-5.2.13.4, including "official" versions of
some that we had already fixed locally. o typeset -f FUNC doesn't print follows command (and expression) substitutions. o when re-allocating memory, too much may be copied from old memory. o set -o printed some options sans names. o emacs mode: <esc>. in very fist command causes core dump. o pdksh dumps core after a cd command. o typeset -i reports on array elements that have no value (at&t ksh reports on array base name - no index). o ulimit -ctn unlimittttted kills shell (resource exceeded). o ". /dev/null" says access denied. o flag field in aliases incorrectly changed (all flags set instead of clearing ISSET) in exec.c(flushcom). o ${#array[*]} prints largest index instead of number of (set) elements in an array (ksh88 does the former). o sys_siglist[] doesn't always have NSIG non-null entries...
Diffstat (limited to 'bin/ksh/shf.c')
-rw-r--r--bin/ksh/shf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ksh/shf.c b/bin/ksh/shf.c
index 78266aa9b26..fb4d94cb3af 100644
--- a/bin/ksh/shf.c
+++ b/bin/ksh/shf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shf.c,v 1.3 1997/06/19 13:58:46 kstailey Exp $ */
+/* $OpenBSD: shf.c,v 1.4 1998/10/29 04:09:21 millert Exp $ */
/*
* Shell file I/O routines
@@ -1098,11 +1098,11 @@ shf_vfprintf(shf, fmt, args)
precision = 0;
}
if (tmp)
- *--s = '-';
+ *s++ = '-';
else if (flags & FL_PLUS)
- *--s = '+';
+ *s++ = '+';
else if (flags & FL_BLANK)
- *--s = ' ';
+ *s++ = ' ';
if (style == 'e')
*s++ = *p++;