gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r16618 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r16618 - gnunet/src/mesh
Date: Fri, 26 Aug 2011 22:09:55 +0200

Author: bartpolot
Date: 2011-08-26 22:09:54 +0200 (Fri, 26 Aug 2011)
New Revision: 16618

Modified:
   gnunet/src/mesh/mesh_api_new.c
Log:
Fixed API test case


Modified: gnunet/src/mesh/mesh_api_new.c
===================================================================
--- gnunet/src/mesh/mesh_api_new.c      2011-08-26 15:23:53 UTC (rev 16617)
+++ gnunet/src/mesh/mesh_api_new.c      2011-08-26 20:09:54 UTC (rev 16618)
@@ -450,10 +450,9 @@
         htons (sizeof (struct GNUNET_MESH_ClientConnect) +
                 sizeof (uint16_t) * ntypes +
                 sizeof (GNUNET_MESH_ApplicationType) * napps);
-
     memcpy (&msg[1], types, sizeof (uint16_t) * ntypes);
-    memcpy (&msg[1] + sizeof (uint16_t) * ntypes, apps,
-            sizeof (GNUNET_MESH_ApplicationType) * napps);
+    types = (uint16_t *) &msg[1];
+    memcpy (&types[ntypes], apps, sizeof (GNUNET_MESH_ApplicationType) * 
napps);
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                 "mesh: Sent %lu bytes long message %d types and %d apps\n",
                 ntohs (msg->header.size), ntypes, napps);




reply via email to

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