summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vfprintf.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-09-24 21:41:14 +0000
committerderaadt <deraadt@openbsd.org>2004-09-24 21:41:14 +0000
commit94cb3126ae7712ed81a976e44d29d2862f320d36 (patch)
treee364a0ec09d1cbe5607abe7724fe1d2093ab2a94 /lib/libc/stdio/vfprintf.c
parentWhoops, need to include the IGN... zs@fhc now sorta works (kinda...) (diff)
downloadwireguard-openbsd-94cb3126ae7712ed81a976e44d29d2862f320d36.tar.xz
wireguard-openbsd-94cb3126ae7712ed81a976e44d29d2862f320d36.zip
explain why mmap; pointed out by claus, pr 3932
Diffstat (limited to 'lib/libc/stdio/vfprintf.c')
-rw-r--r--lib/libc/stdio/vfprintf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c
index 600f8bc34f6..576fe20e1ea 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.23 2004/09/18 19:28:06 otto Exp $";
+static char *rcsid = "$OpenBSD: vfprintf.c,v 1.24 2004/09/24 21:41:14 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -812,7 +812,9 @@ error:
* Find all arguments when a positional parameter is encountered. Returns a
* table, indexed by argument number, of pointers to each arguments. The
* initial argument table should be an array of STATIC_ARG_TBL_SIZE entries.
- * It will be replaces with a malloc-ed on if it overflows.
+ * It will be replaces with a mmap-ed one if it overflows (malloc cannot be
+ * used since we are attempting to make snprintf thread safe, and alloca is
+ * problematic since we have nested functions..)
*/
static void
__find_arguments(fmt0, ap, argtable, argtablesiz)