From d03c26430c525c7b1438bfb230e148feed738e43 Mon Sep 17 00:00:00 2001 From: HD Moore Date: Fri, 26 Feb 2010 21:18:58 +0000 Subject: [PATCH] Max is 32k git-svn-id: file:///home/svn/framework3/trunk@8670 4d416f70-5f16-0410-b530-b9f4589650da --- lib/rex/compat.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rex/compat.rb b/lib/rex/compat.rb index ceb9e66dab..4dedafee63 100644 --- a/lib/rex/compat.rb +++ b/lib/rex/compat.rb @@ -150,7 +150,7 @@ end def self.getenv(var) if (is_windows and @@loaded_win32api) f = Win32API.new("kernel32", "GetEnvironmentVariable", ["P", "P", "I"], "I") - buff = "\x00" * 65536 + buff = "\x00" * 16384 sz = f.call(var, buff, buff.length) return nil if sz == 0 buff[0,sz]