From: discomfitor Date: Thu, 8 Dec 2011 17:27:30 +0000 (+0000) Subject: okay I was a little too excited X-Git-Tag: build/2012-07-04.173327~596 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0422f949b411552e32f143807e474edea09e63a5;p=profile%2Fivi%2Fecore.git okay I was a little too excited git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@66042 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/ecore_con/ecore_con_socks.c b/src/lib/ecore_con/ecore_con_socks.c index 21f199a..d44c1f5 100644 --- a/src/lib/ecore_con/ecore_con_socks.c +++ b/src/lib/ecore_con/ecore_con_socks.c @@ -103,9 +103,9 @@ ecore_con_socks_read(Ecore_Con_Server *svr, unsigned char *buf, int num) DBG("SOCKS: %d bytes", num); if (num < 8) { - if (!svr->ecs_recvbuf) svr->ecs_recvbuf = eina_binbuf_manage_new_length(buf, num); - else eina_binbuf_append_length(svr->ecs_recvbuf, buf, num); + if (!svr->ecs_recvbuf) svr->ecs_recvbuf = eina_binbuf_new(); if (!svr->ecs_recvbuf) goto error; + eina_binbuf_append_length(svr->ecs_recvbuf, buf, num); /* the slowest connection on earth */ if (eina_binbuf_length_get(svr->ecs_recvbuf) != 8) return; data = eina_binbuf_string_get(svr->ecs_recvbuf);