Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libutil doesn't work new format 'F' with a string...
details: https://anonhg.NetBSD.org/src/rev/4395d4e9c9dd
branches: trunk
changeset: 356806:4395d4e9c9dd
user: ryo <ryo%NetBSD.org@localhost>
date: Sat Oct 14 18:41:41 2017 +0000
description:
doesn't work new format 'F' with a strings of length 1, or a string beginning with 'F'
diffstat:
common/lib/libutil/snprintb.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 1623a2766db1 -r 4395d4e9c9dd common/lib/libutil/snprintb.c
--- a/common/lib/libutil/snprintb.c Sat Oct 14 15:35:02 2017 +0000
+++ b/common/lib/libutil/snprintb.c Sat Oct 14 18:41:41 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: snprintb.c,v 1.16 2014/08/02 11:19:01 ryo Exp $ */
+/* $NetBSD: snprintb.c,v 1.17 2017/10/14 18:41:41 ryo Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
# include <sys/cdefs.h>
# if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: snprintb.c,v 1.16 2014/08/02 11:19:01 ryo Exp $");
+__RCSID("$NetBSD: snprintb.c,v 1.17 2017/10/14 18:41:41 ryo Exp $");
# endif
# include <sys/types.h>
@@ -51,7 +51,7 @@
# include <errno.h>
# else /* ! _KERNEL */
# include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: snprintb.c,v 1.16 2014/08/02 11:19:01 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: snprintb.c,v 1.17 2017/10/14 18:41:41 ryo Exp $");
# include <sys/param.h>
# include <sys/inttypes.h>
# include <sys/systm.h>
@@ -215,8 +215,10 @@
PUTSEP;
if (restart == 0)
sep = ',';
- if (ch == 'F') /* just extract */
+ if (ch == 'F') { /* just extract */
+ bitfmt--;
break;
+ }
if (restart == 0)
PUTS(bitfmt);
if (restart == 0)
Home |
Main Index |
Thread Index |
Old Index