We always need to null terminate

SVN revision: 46107
This commit is contained in:
Sebastian Dransfeld 2010-02-12 06:33:31 +00:00
parent 7c9103f3ae
commit 852f9e8ac5
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ eina_strbuf_append_n(Eina_Strbuf *buf, const char *str, unsigned int maxlen)
if (!_eina_strbuf_grow(buf, buf->len + len))
return EINA_FALSE;
memcpy(buf->buf + buf->len, str, len + 1); // + 1 for '\0'
memcpy(buf->buf + buf->len, str, len);
buf->len += len;
buf->buf[buf->len] = '\0';
return EINA_TRUE;