Fixed array overflow discovered when building under XCode

Signed-off-by: robertsonics <jamie@robertsonics.com>