grow array only when required, use step properly.
grow array only when required, use step properly.

We need to grow when we reach total amount, not when current + step > total.



SVN revision: 37959

gfriloux/eina,turran/eina,gfriloux/eina,turran/eina,gfriloux/eina,turran/eina