Preventing buffer overflow

There are actually 11 arguments may be put into this array: lines 2918-2934.