Fix crash when InputMessage is too large

This commit is contained in:
Eduardo Bart 2012-07-26 11:03:57 -03:00
parent 619305cc6d
commit 0a49f58e50
3 changed files with 2 additions and 2 deletions

View File

@ -4,5 +4,6 @@ Module
author: edubart author: edubart
website: www.otclient.info website: www.otclient.info
scripts: [ shaders.lua ] scripts: [ shaders.lua ]
sandboxed: true
@onLoad: init() @onLoad: init()
@onUnload: terminate() @onUnload: terminate()

View File

@ -5,4 +5,3 @@ Module
sandboxed: true sandboxed: true
scripts: [tibiafiles.lua] scripts: [tibiafiles.lua]
@onLoad: init() @onLoad: init()
@onUnload: terminate()

View File

@ -31,7 +31,7 @@ class InputMessage : public LuaObject
{ {
public: public:
enum { enum {
BUFFER_MAXSIZE = 16384, BUFFER_MAXSIZE = 65536,
MAX_HEADER_SIZE = 8 MAX_HEADER_SIZE = 8
}; };