oops - forgot to copy my fix to other side too!
authorCarsten Haitzler <raster@rasterman.com>
Tue, 20 Apr 2004 09:30:59 +0000 (09:30 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Tue, 20 Apr 2004 09:30:59 +0000 (09:30 +0000)
SVN revision: 9808

legacy/ecore/src/lib/ecore_con/ecore_con.c
legacy/ecore/src/lib/ecore_ipc/ecore_ipc.c

index 5661553..e8a651f 100644 (file)
@@ -554,6 +554,7 @@ ecore_con_client_send(Ecore_Con_Client *cl, void *data, int size)
      {
        unsigned char *newbuf;
        
+       printf("CON: existing buf...\n");
        newbuf = realloc(cl->buf, cl->buf_size + size);
        if (newbuf) cl->buf = newbuf;
        else return 0;
@@ -562,6 +563,7 @@ ecore_con_client_send(Ecore_Con_Client *cl, void *data, int size)
      }
    else
      {
+       printf("CON: newbuf!\n");
        cl->buf = malloc(size);
        if (!cl->buf) return 0;
        cl->buf_size = size;
index 17fb91e..9ecd290 100644 (file)
@@ -718,7 +718,7 @@ _ecore_ipc_event_server_data(void *data, int ev_type, void *ev)
                            svr->buf_size = 0;
                            return 0;
                         }
-                      memcpy(buf, svr->buf + offset + sizeof(Ecore_Ipc_Msg_Head), size);
+                      memcpy(buf, svr->buf + offset, size);
                       free(svr->buf);
                       svr->buf = buf;
                       svr->buf_size = size;