summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/fmtcheck.c
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2005-03-21 08:00:55 +0000
committerdas <das@FreeBSD.org>2005-03-21 08:00:55 +0000
commit79d24f2484be4474682749ca0ad8fcc097aea491 (patch)
treec41f8edbd4cb4e344dfd4c5ab0e9b8ec36b37336 /lib/libc/gen/fmtcheck.c
parent47633d30dcb070a831e72d6f17f9c028f1b1c901 (diff)
downloadFreeBSD-src-79d24f2484be4474682749ca0ad8fcc097aea491.zip
FreeBSD-src-79d24f2484be4474682749ca0ad8fcc097aea491.tar.gz
Teach fmtcheck() about the ' (thousands separator) flag.
Diffstat (limited to 'lib/libc/gen/fmtcheck.c')
-rw-r--r--lib/libc/gen/fmtcheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/fmtcheck.c b/lib/libc/gen/fmtcheck.c
index 661cb8a..ca93983 100644
--- a/lib/libc/gen/fmtcheck.c
+++ b/lib/libc/gen/fmtcheck.c
@@ -228,7 +228,7 @@ get_next_format(const char **pf, EFT eft)
}
/* Eat any of the flags */
- while (*f && (strchr("#0- +", *f)))
+ while (*f && (strchr("#'0- +", *f)))
f++;
if (*f == '*') {
OpenPOWER on IntegriCloud