diff --git a/legacy/eina/AUTHORS b/legacy/eina/AUTHORS index 170169b86f..354de527af 100644 --- a/legacy/eina/AUTHORS +++ b/legacy/eina/AUTHORS @@ -18,3 +18,4 @@ Tom Hacohen Sebastian Dransfeld Myungjae Lee Youness Alaoui +billiob (Boris Faure) diff --git a/legacy/eina/src/include/eina_strbuf.h b/legacy/eina/src/include/eina_strbuf.h index d4f6b34f14..0915023352 100644 --- a/legacy/eina/src/include/eina_strbuf.h +++ b/legacy/eina/src/include/eina_strbuf.h @@ -183,7 +183,7 @@ EAPI Eina_Bool eina_strbuf_append_n(Eina_Strbuf *buf, const char *str, size_t ma * This function appends @p str to @p buf. @p str must be of size at * most @p length. It is slightly faster than eina_strbuf_append() as * it does not compute the size of @p str. It is useful when dealing - * with strings of known size, such as eina_strngshare. If @p buf + * with strings of known size, such as eina_stringshare. If @p buf * can't append it, #EINA_FALSE is returned, otherwise #EINA_TRUE is * returned. * @@ -191,7 +191,7 @@ EAPI Eina_Bool eina_strbuf_append_n(Eina_Strbuf *buf, const char *str, size_t ma * @see eina_strbuf_append() * @see eina_strbuf_append_n() */ -EAPI Eina_Bool eina_strbuf_append_length(Eina_Strbuf *buf, const char *str, size_t length) EINA_ARG_NONNULL(1, 2); +EAPI Eina_Bool eina_strbuf_append_length(Eina_Strbuf *buf, const char *str, size_t length) EINA_ARG_NONNULL(1); /** * @brief Append a character to a string buffer, reallocating as diff --git a/legacy/eina/src/lib/eina_strbuf_common.c b/legacy/eina/src/lib/eina_strbuf_common.c index abdd57c6d9..46067cd543 100644 --- a/legacy/eina/src/lib/eina_strbuf_common.c +++ b/legacy/eina/src/lib/eina_strbuf_common.c @@ -447,7 +447,7 @@ eina_strbuf_common_append_length(size_t csize, if (EINA_UNLIKELY(!_eina_strbuf_common_grow(csize, buf, buf->len + length))) return EINA_FALSE; - memcpy(((unsigned char *)(buf->buf)) + (buf->len * csize), str, + memcpy(((unsigned char *)(buf->buf)) + (buf->len * csize), str, length * csize); buf->len += length; memset(((unsigned char *)(buf->buf)) + (buf->len * csize), 0, csize);