aboutsummaryrefslogtreecommitdiff
path: root/src/regex/regex_block_lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex/regex_block_lib.c')
-rw-r--r--src/regex/regex_block_lib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regex/regex_block_lib.c b/src/regex/regex_block_lib.c
index cc9e1a08e..d545c89de 100644
--- a/src/regex/regex_block_lib.c
+++ b/src/regex/regex_block_lib.c
@@ -448,17 +448,17 @@ REGEX_BLOCK_create (const char *proof,
448 block->num_edges = htons (num_edges); 448 block->num_edges = htons (num_edges);
449 block->num_destinations = htons (unique_destinations); 449 block->num_destinations = htons (unique_destinations);
450 dests = (struct GNUNET_HashCode *) &block[1]; 450 dests = (struct GNUNET_HashCode *) &block[1];
451 memcpy (dests, destinations, sizeof (struct GNUNET_HashCode) * unique_destinations); 451 GNUNET_memcpy (dests, destinations, sizeof (struct GNUNET_HashCode) * unique_destinations);
452 edgeinfos = (struct EdgeInfo *) &dests[unique_destinations]; 452 edgeinfos = (struct EdgeInfo *) &dests[unique_destinations];
453 aux = (char *) &edgeinfos[num_edges]; 453 aux = (char *) &edgeinfos[num_edges];
454 off = len; 454 off = len;
455 memcpy (aux, proof, len); 455 GNUNET_memcpy (aux, proof, len);
456 for (i=0;i<num_edges;i++) 456 for (i=0;i<num_edges;i++)
457 { 457 {
458 slen = strlen (edges[i].label); 458 slen = strlen (edges[i].label);
459 edgeinfos[i].token_length = htons ((uint16_t) slen); 459 edgeinfos[i].token_length = htons ((uint16_t) slen);
460 edgeinfos[i].destination_index = htons (destination_indices[i]); 460 edgeinfos[i].destination_index = htons (destination_indices[i]);
461 memcpy (&aux[off], 461 GNUNET_memcpy (&aux[off],
462 edges[i].label, 462 edges[i].label,
463 slen); 463 slen);
464 off += slen; 464 off += slen;