diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-21 12:32:28 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-02-21 12:32:28 +0000 |
commit | 55819ee2cb990740cd1b4b9ed535dcf9020df515 (patch) | |
tree | 3cd0a8638865eb3751c7a102f0f50017cce2b91d /src/testbed/testbed_api_hosts.c | |
parent | 6989b0988146705e8ea5411a110a7d645b7cc459 (diff) | |
download | gnunet-55819ee2cb990740cd1b4b9ed535dcf9020df515.tar.gz gnunet-55819ee2cb990740cd1b4b9ed535dcf9020df515.zip |
- do not use mempcpy()
Diffstat (limited to 'src/testbed/testbed_api_hosts.c')
-rw-r--r-- | src/testbed/testbed_api_hosts.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/testbed/testbed_api_hosts.c b/src/testbed/testbed_api_hosts.c index 9e671087a..ea1a1a570 100644 --- a/src/testbed/testbed_api_hosts.c +++ b/src/testbed/testbed_api_hosts.c | |||
@@ -1305,12 +1305,15 @@ GNUNET_TESTBED_register_host (struct GNUNET_TESTBED_Controller *controller, | |||
1305 | if (NULL != username) | 1305 | if (NULL != username) |
1306 | { | 1306 | { |
1307 | msg->username_length = htons (username_length); | 1307 | msg->username_length = htons (username_length); |
1308 | ptr = mempcpy (ptr, username, username_length); | 1308 | ptr = memcpy (ptr, username, username_length); |
1309 | ptr += username_length; | ||
1309 | } | 1310 | } |
1310 | msg->hostname_length = htons (hostname_length); | 1311 | msg->hostname_length = htons (hostname_length); |
1311 | ptr = mempcpy (ptr, hostname, hostname_length); | 1312 | ptr = memcpy (ptr, hostname, hostname_length); |
1313 | ptr += hostname_length; | ||
1312 | msg->config_size = htons (config_size); | 1314 | msg->config_size = htons (config_size); |
1313 | ptr = mempcpy (ptr, cconfig, cc_size); | 1315 | ptr = memcpy (ptr, cconfig, cc_size); |
1316 | ptr += cc_size; | ||
1314 | GNUNET_assert ((ptr - (void *) msg) == msg_size); | 1317 | GNUNET_assert ((ptr - (void *) msg) == msg_size); |
1315 | GNUNET_free (cconfig); | 1318 | GNUNET_free (cconfig); |
1316 | GNUNET_TESTBED_queue_message_ (controller, | 1319 | GNUNET_TESTBED_queue_message_ (controller, |