diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2009-10-28 21:15:03 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2009-10-28 21:15:03 +0000 |
commit | 666073da47015a34fdf88027bb2d4be1f7aad2a6 (patch) | |
tree | a5c0791d3d9871deb8b53305dfd10e27c5112c1a /lib/libc/stdio | |
parent | 2ae2396d0741a0246544150ec2f2504ae772a707 (diff) |
skip the \' formatting flag, grouping is not implemented; ok deraadt@
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/vfprintf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index 4ab62b49f29..07f4f88d1f6 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfprintf.c,v 1.56 2009/10/22 01:23:16 guenther Exp $ */ +/* $OpenBSD: vfprintf.c,v 1.57 2009/10/28 21:15:02 naddy Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. @@ -437,6 +437,9 @@ reswitch: switch (ch) { case '#': flags |= ALT; goto rflag; + case '\'': + /* grouping not implemented */ + goto rflag; case '*': /* * ``A negative field width argument is taken as a @@ -1084,6 +1087,7 @@ rflag: ch = *fmt++; reswitch: switch (ch) { case ' ': case '#': + case '\'': goto rflag; case '*': ADDASTER(); |