
WOW!! An array of size 4096???
Maybe that is too large, try adding this to the top of your source code:
#pragma dynamic 20000
Or maybe even play with the number 20000 a bit, it should help!
Also, I think MOTD windows have a maximum length of characters allowed, so maybe you've exceeded that limit?