summaryrefslogtreecommitdiff
path: root/sys/lib/libsa
diff options
context:
space:
mode:
authortsutsui <tsutsui@NetBSD.org>2011-05-20 16:33:07 +0000
committertsutsui <tsutsui@NetBSD.org>2011-05-20 16:33:07 +0000
commit5223eebf2bbe3d7a8bfbe554ab4e8c83a586475a (patch)
treec9f59b7effb2229f9639b4daefac3489fb7b6575 /sys/lib/libsa
parente252f06bbcfe64f5bf1716260c1e487efd1946f2 (diff)
KNF a bit.
Diffstat (limited to 'sys/lib/libsa')
-rw-r--r--sys/lib/libsa/subr_prf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/lib/libsa/subr_prf.c b/sys/lib/libsa/subr_prf.c
index 0902b960d32..1b67cb88a5a 100644
--- a/sys/lib/libsa/subr_prf.c
+++ b/sys/lib/libsa/subr_prf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_prf.c,v 1.19 2011/02/25 00:20:36 joerg Exp $ */
+/* $NetBSD: subr_prf.c,v 1.20 2011/05/20 16:33:07 tsutsui Exp $ */
/*-
* Copyright (c) 1993
@@ -234,7 +234,8 @@ reswitch:
case 's':
p = va_arg(ap, char *);
#ifdef LIBSA_PRINTF_WIDTH_SUPPORT
- for (q = p; *q; ++q);
+ for (q = p; *q != '\0'; ++q)
+ continue;
width -= q - p;
#endif
RPAD();