diff options
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r-- | sys/kern/subr_prf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index c6d49dfeda6..c38fad6e73f 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_prf.c,v 1.9 1996/07/23 23:54:19 deraadt Exp $ */ +/* $OpenBSD: subr_prf.c,v 1.10 1996/07/28 01:05:48 deraadt Exp $ */ /* $NetBSD: subr_prf.c,v 1.25 1996/04/22 01:38:46 christos Exp $ */ /*- @@ -565,9 +565,9 @@ reswitch: switch (ch = *(u_char *)fmt++) { case '\0': while(*--fmt != '%') ; - while(*bp++ = *fmt++) + while((*bp++ = *fmt++)) ; - return; + return ((bp - buf) - 1); case '0': padc = '0'; goto reswitch; |