diff options
Diffstat (limited to 'src/testbed/testbed_api_testbed.c')
-rw-r--r-- | src/testbed/testbed_api_testbed.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testbed/testbed_api_testbed.c b/src/testbed/testbed_api_testbed.c index dd6822a41..6581fffe6 100644 --- a/src/testbed/testbed_api_testbed.c +++ b/src/testbed/testbed_api_testbed.c | |||
@@ -973,10 +973,10 @@ host_habitable_cb (void *cls, const struct GNUNET_TESTBED_Host *host, | |||
973 | if (0 < rc->num_hosts) | 973 | if (0 < rc->num_hosts) |
974 | { | 974 | { |
975 | old_hosts = rc->hosts; | 975 | old_hosts = rc->hosts; |
976 | rc->hosts = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_Host *) | 976 | rc->hosts = |
977 | * rc->num_hosts); | 977 | GNUNET_malloc (sizeof (struct GNUNET_TESTBED_Host *) * rc->num_hosts); |
978 | memcpy (rc->hosts, &old_hosts[1], (sizeof (struct GNUNET_TESTBED_Host *) | 978 | memcpy (rc->hosts, &old_hosts[1], |
979 | * rc->num_hosts)); | 979 | (sizeof (struct GNUNET_TESTBED_Host *) * rc->num_hosts)); |
980 | GNUNET_free (old_hosts); | 980 | GNUNET_free (old_hosts); |
981 | } | 981 | } |
982 | else | 982 | else |