diff options
Diffstat (limited to 'src/util/resolver_api.c')
-rw-r--r-- | src/util/resolver_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/resolver_api.c b/src/util/resolver_api.c index b41382683..299fdfef9 100644 --- a/src/util/resolver_api.c +++ b/src/util/resolver_api.c | |||
@@ -387,7 +387,7 @@ process_requests () | |||
387 | GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST); | 387 | GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST); |
388 | msg->direction = htonl (rh->direction); | 388 | msg->direction = htonl (rh->direction); |
389 | msg->af = htonl (rh->af); | 389 | msg->af = htonl (rh->af); |
390 | memcpy (&msg[1], | 390 | GNUNET_memcpy (&msg[1], |
391 | &rh[1], | 391 | &rh[1], |
392 | rh->data_len); | 392 | rh->data_len); |
393 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 393 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
@@ -845,7 +845,7 @@ GNUNET_RESOLVER_ip_get (const char *hostname, | |||
845 | rh->af = af; | 845 | rh->af = af; |
846 | rh->addr_callback = callback; | 846 | rh->addr_callback = callback; |
847 | rh->cls = callback_cls; | 847 | rh->cls = callback_cls; |
848 | memcpy (&rh[1], | 848 | GNUNET_memcpy (&rh[1], |
849 | hostname, | 849 | hostname, |
850 | slen); | 850 | slen); |
851 | rh->data_len = slen; | 851 | rh->data_len = slen; |
@@ -983,7 +983,7 @@ GNUNET_RESOLVER_hostname_get (const struct sockaddr *sa, | |||
983 | rh->cls = cls; | 983 | rh->cls = cls; |
984 | rh->af = sa->sa_family; | 984 | rh->af = sa->sa_family; |
985 | rh->timeout = GNUNET_TIME_relative_to_absolute (timeout); | 985 | rh->timeout = GNUNET_TIME_relative_to_absolute (timeout); |
986 | memcpy (&rh[1], | 986 | GNUNET_memcpy (&rh[1], |
987 | ip, | 987 | ip, |
988 | ip_len); | 988 | ip_len); |
989 | rh->data_len = ip_len; | 989 | rh->data_len = ip_len; |