From 5b5107471fc12069c254d6be1559503d1e9776ae Mon Sep 17 00:00:00 2001 From: Sebastian Dransfeld Date: Sun, 7 Feb 2010 12:21:07 +0000 Subject: [PATCH] Work with escaped string SVN revision: 45962 --- legacy/eina/src/lib/eina_strbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/eina/src/lib/eina_strbuf.c b/legacy/eina/src/lib/eina_strbuf.c index c829280402..30e7fd8b04 100644 --- a/legacy/eina/src/lib/eina_strbuf.c +++ b/legacy/eina/src/lib/eina_strbuf.c @@ -132,9 +132,9 @@ eina_strbuf_append_escaped(Eina_Strbuf *buf, const char *str) EINA_MAGIC_CHECK_STRBUF(buf); esc = eina_str_escape(str); - len = strlen(str); + len = strlen(esc); _eina_strbuf_resize(buf, buf->len + len); - eina_strlcpy(buf->buf + buf->len, str, buf->size - buf->len); + eina_strlcpy(buf->buf + buf->len, esc, buf->size - buf->len); buf->len += len; free(esc); }