gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r1394 - GNUnet/src/applications/session


From: grothoff
Subject: [GNUnet-SVN] r1394 - GNUnet/src/applications/session
Date: Mon, 11 Jul 2005 10:37:17 -0700 (PDT)

Author: grothoff
Date: 2005-07-11 10:37:15 -0700 (Mon, 11 Jul 2005)
New Revision: 1394

Modified:
   GNUnet/src/applications/session/connect.c
Log:
cleaner code

Modified: GNUnet/src/applications/session/connect.c
===================================================================
--- GNUnet/src/applications/session/connect.c   2005-07-11 17:31:40 UTC (rev 
1393)
+++ GNUnet/src/applications/session/connect.c   2005-07-11 17:37:15 UTC (rev 
1394)
@@ -294,11 +294,15 @@
     pt = MALLOC(size);
     size = 0;
     if (ping != NULL) {
-      memcpy(&pt[size], ping, ntohs(ping->size));
+      memcpy(&pt[size], 
+            ping,
+            ntohs(ping->size));
       size += ntohs(ping->size);
     }
     if (pong != NULL) {
-      memcpy(&pt[size], pong, ntohs(pong->size));
+      memcpy(&pt[size],
+            pong, 
+            ntohs(pong->size));
       size += ntohs(pong->size);
     }
 #if DEBUG_SESSION
@@ -312,7 +316,7 @@
                                     size,
                                     sk,
                                     (const INITVECTOR*) &msg->signature,
-                                    &((char*)msg)[sizeof(SKEY_Message)]));
+                                    (char*)&msg[1]));
     FREE(pt);
   }
   return msg;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]