Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdlib fix whitespace prefix behavior



details:   https://anonhg.NetBSD.org/src/rev/a01d058c4478
branches:  trunk
changeset: 369451:a01d058c4478
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Aug 18 11:05:02 2022 +0000

description:
fix whitespace prefix behavior

diffstat:

 lib/libc/stdlib/strfmon.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5e1ffbf618b0 -r a01d058c4478 lib/libc/stdlib/strfmon.c
--- a/lib/libc/stdlib/strfmon.c Thu Aug 18 05:37:05 2022 +0000
+++ b/lib/libc/stdlib/strfmon.c Thu Aug 18 11:05:02 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: strfmon.c,v 1.17 2022/08/17 09:32:56 christos Exp $    */
+/*     $NetBSD: strfmon.c,v 1.18 2022/08/18 11:05:02 christos Exp $    */
 
 /*-
  * Copyright (c) 2001 Alexey Zelkin <phantom%FreeBSD.org@localhost>
@@ -32,7 +32,7 @@
 #if 0
 __FBSDID("$FreeBSD: src/lib/libc/stdlib/strfmon.c,v 1.14 2003/03/20 08:18:55 ache Exp $");
 #else
-__RCSID("$NetBSD: strfmon.c,v 1.17 2022/08/17 09:32:56 christos Exp $");
+__RCSID("$NetBSD: strfmon.c,v 1.18 2022/08/18 11:05:02 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -454,7 +454,7 @@
        if (*cs_precedes != 0)
                *cs_precedes = 1;
        if ((unsigned char)*sep_by_space == NBCHAR_MAX)
-               *sep_by_space = 0;
+               *sep_by_space = 1;
        if ((unsigned char)*sign_posn == NBCHAR_MAX)
                *sign_posn = 0;
 }



Home | Main Index | Thread Index | Old Index