Added missing ;

Also removed unnecessary variable containing magic number, and replaced
with a simple call the array length as that more clearly represents the
intend.