summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vfprintf.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-09-24 23:25:49 +0000
committerderaadt <deraadt@openbsd.org>2004-09-24 23:25:49 +0000
commitb738aef1ccd0620e729c0bd7a3c2fa6a7a91b317 (patch)
treec49c7369fd9b83e7ac7fdd6556c63bf14c902f32 /lib/libc/stdio/vfprintf.c
parentexplain why mmap; pointed out by claus, pr 3932 (diff)
downloadwireguard-openbsd-b738aef1ccd0620e729c0bd7a3c2fa6a7a91b317.tar.xz
wireguard-openbsd-b738aef1ccd0620e729c0bd7a3c2fa6a7a91b317.zip
access one too far away; from claus; ok millert
Diffstat (limited to 'lib/libc/stdio/vfprintf.c')
-rw-r--r--lib/libc/stdio/vfprintf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c
index 576fe20e1ea..06991fa6244 100644
--- a/lib/libc/stdio/vfprintf.c
+++ b/lib/libc/stdio/vfprintf.c
@@ -31,7 +31,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: vfprintf.c,v 1.24 2004/09/24 21:41:14 deraadt Exp $";
+static char *rcsid = "$OpenBSD: vfprintf.c,v 1.25 2004/09/24 23:25:49 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -840,8 +840,8 @@ __find_arguments(fmt0, ap, argtable, argtablesiz)
#define ADDTYPE(type) \
((nextarg >= tablesize) ? \
__grow_type_table(&typetable, &tablesize) : 0, \
- typetable[nextarg++] = type, \
- (nextarg > tablemax) ? tablemax = nextarg : 0)
+ (nextarg > tablemax) ? tablemax = nextarg : 0,
+ typetable[nextarg++] = type)
#define ADDSARG() \
((flags&LONGINT) ? ADDTYPE(T_LONG) : \