[master] 711b83d Use more reasonalby sized stack buffers: 8k instead of 64k
Poul-Henning Kamp
phk at varnish-cache.org
Tue Jan 25 11:15:40 CET 2011
commit 711b83de00d1c4931fe3a30306b4d93e61a81af8
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Jan 25 10:04:16 2011 +0000
Use more reasonalby sized stack buffers: 8k instead of 64k
diff --git a/lib/libvmod_std/vmod_std.c b/lib/libvmod_std/vmod_std.c
index 9210e26..e032905 100644
--- a/lib/libvmod_std/vmod_std.c
+++ b/lib/libvmod_std/vmod_std.c
@@ -138,7 +138,7 @@ vmod_random(struct sess *sp, double lo, double hi)
void
vmod_log(struct sess *sp, const char *fmt, ...)
{
- char buf[64*1024], *p;
+ char buf[8192], *p;
va_list ap;
va_start(ap, fmt);
@@ -151,7 +151,7 @@ vmod_log(struct sess *sp, const char *fmt, ...)
void
vmod_syslog(struct sess *sp, int fac, const char *fmt, ...)
{
- char buf[64*1024], *p;
+ char buf[8192], *p;
va_list ap;
(void)sp;
More information about the varnish-commit
mailing list