Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_ipc


Modified Files:
        ecore_ipc.c 


Log Message:


fix a bug in ecore_ipc - damn.. how could that stay there? :)

and err - clean up some indenting etc...

trill - going to put n SSL server support too (ie ecore can act as SSL server
too) ?

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_ipc/ecore_ipc.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ecore_ipc.c 6 Apr 2004 06:22:47 -0000       1.5
+++ ecore_ipc.c 14 Apr 2004 08:51:19 -0000      1.6
@@ -570,7 +570,7 @@
                                       _ecore_ipc_event_client_data_free, NULL);
                    }
                  offset += (sizeof(Ecore_Ipc_Msg_Head) + size);
-                 if (cl->buf_size - offset >= sizeof(Ecore_Ipc_Msg_Head))
+                 if ((cl->buf_size - offset) >= sizeof(Ecore_Ipc_Msg_Head))
                    {
                       msg = (Ecore_Ipc_Msg_Head *)(cl->buf + offset);
                       major    = ntohl(msg->major);
@@ -580,7 +580,7 @@
                       response = ntohl(msg->response);
                       size     = ntohl(msg->size);
                       if (size < 0) size = 0;
-                      if (cl->buf_size - offset >= (sizeof(Ecore_Ipc_Msg_Head) + 
size))
+                      if ((cl->buf_size - offset) >= (sizeof(Ecore_Ipc_Msg_Head) + 
size))
                         goto redo;
                    }
                  /* remove data from our buffer and "scoll" the rest down */
@@ -596,7 +596,7 @@
                            cl->buf_size = 0;
                            return 0;
                         }
-                      memcpy(buf, cl->buf + offset + sizeof(Ecore_Ipc_Msg_Head), 
size);
+                      memcpy(buf, cl->buf + offset, size);
                       free(cl->buf);
                       cl->buf = buf;
                       cl->buf_size = size;




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to