summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/vfprintf.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2005-09-23 02:33:35 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2005-09-23 02:33:35 +0000
commit075f844a35962cf0dc706846d24539fc738ddbdc (patch)
tree07cb2c7cf6b5fd29c58fe47eaba7dc2a970ef076 /lib/libc/stdio/vfprintf.c
parent5eeb691a00198c1bd1cfbeb1b97c53f7f3af255b (diff)
support %jd from c99, although intmax_t may not be available.
ok deraadt espie kettenis
Diffstat (limited to 'lib/libc/stdio/vfprintf.c')
-rw-r--r--lib/libc/stdio/vfprintf.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c
index 78c8b77a0d2..2b5314856db 100644
--- a/lib/libc/stdio/vfprintf.c
+++ b/lib/libc/stdio/vfprintf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfprintf.c,v 1.32 2005/08/08 08:05:36 espie Exp $ */
+/* $OpenBSD: vfprintf.c,v 1.33 2005/09/23 02:33:34 tedu Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@@ -425,6 +425,9 @@ reswitch: switch (ch) {
case 'h':
flags |= SHORTINT;
goto rflag;
+ case 'j':
+ flags |= QUADINT;
+ goto rflag;
case 'l':
if (*fmt == 'l') {
fmt++;