And since resize adds + 1 to size, grow must do to

SVN revision: 45969
This commit is contained in:
Sebastian Dransfeld 2010-02-07 19:31:26 +00:00
parent 216aabeaa0
commit f285bc7ae9
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ struct _Eina_Strbuf
static void _eina_strbuf_init(Eina_Strbuf *buf);
static Eina_Bool _eina_strbuf_resize(Eina_Strbuf *buf, size_t size);
#define _eina_strbuf_grow(_buf, _size) \
((_size) > (_buf)->size) ? _eina_strbuf_resize((_buf), (_size)) : EINA_TRUE
(((_size) + 1) > (_buf)->size) ? _eina_strbuf_resize((_buf), (_size)) : EINA_TRUE
Eina_Bool
eina_strbuf_init(void)