Better resize rotine, linear instead of double.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 27 Feb 2010 16:41:24 +0000 (16:41 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 27 Feb 2010 16:41:24 +0000 (16:41 +0000)
commit860826270d8188c61241c611821fe10e9d42b49a
tree0e7eb3b727e01bce72d0b6f11d1c83389faec7ad
parentdaa75c69ad00003d5d698a90d30a844b88ab3fae
Better resize rotine, linear instead of double.

Increment in steps linearly instead of doubling them, otherwise it
will get to maximum limit of 4096 too soon.

Also replace the loop with simple math.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@46585 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/eina_strbuf.c
src/tests/eina_test_strbuf.c