Buffer overflow fix. We were writing beyond our array, bypassing usual merging from safemode branch to avoid the extra commit, however, it will be reflected in following push of un-related changes in that branch.
Authored by: safemode 2010-03-13
Parent: [r12711]
Child: [r12713]