From 3180503a6ac6c3e45dda39bfecc1e2c497ec7cff Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Sun, 3 Apr 2011 22:10:03 +0000 Subject: [PATCH] Don't allocate over 2MB on the stack; sparc-netbsd3.0 default stack limit is 2MB. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24829 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/crypto/krb/t_fortuna.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/crypto/krb/t_fortuna.c b/src/lib/crypto/krb/t_fortuna.c index 561e99009..5931eb7e6 100644 --- a/src/lib/crypto/krb/t_fortuna.c +++ b/src/lib/crypto/krb/t_fortuna.c @@ -116,7 +116,7 @@ main(int argc, char **argv) { struct fortuna_state test_state; struct fortuna_state *st = &test_state; - unsigned char buf[2 * 1024 * 1024]; + static unsigned char buf[2 * 1024 * 1024]; unsigned int i; /* Seed the generator with a known state. */ -- 2.26.2