diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-05-10 01:01:06 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-05-10 01:01:06 +0200 |
commit | 054151c6302313e5cb1f1823d579fd2c7d9dbaef (patch) | |
tree | 366b83b37bd1fbe79b7bf9bd94d061be2e0d06d1 | |
parent | 32f00d5c4809c7da86ec1b433dc1e2d6f9598d9b (diff) |
-always use GNUNET_memcpy
-rw-r--r-- | src/backend/taler-merchant-httpd_helper.c | 6 | ||||
-rw-r--r-- | src/lib/merchant_api_post_order_abort.c | 6 | ||||
-rw-r--r-- | src/lib/merchant_api_post_order_pay.c | 6 | ||||
-rw-r--r-- | src/testing/testing_api_cmd_abort_order.c | 6 | ||||
-rw-r--r-- | src/testing/testing_api_cmd_patch_instance.c | 6 |
5 files changed, 15 insertions, 15 deletions
diff --git a/src/backend/taler-merchant-httpd_helper.c b/src/backend/taler-merchant-httpd_helper.c index 9e7a1883..61b935f5 100644 --- a/src/backend/taler-merchant-httpd_helper.c +++ b/src/backend/taler-merchant-httpd_helper.c @@ -597,9 +597,9 @@ TMH_uuid_from_string (const char *uuids, strlen (uuids), &hc); GNUNET_static_assert (sizeof (hc) > sizeof (*uuid)); - memcpy (uuid, - &hc, - sizeof (*uuid)); + GNUNET_memcpy (uuid, + &hc, + sizeof (*uuid)); } diff --git a/src/lib/merchant_api_post_order_abort.c b/src/lib/merchant_api_post_order_abort.c index b5a7a00b..d980ae18 100644 --- a/src/lib/merchant_api_post_order_abort.c +++ b/src/lib/merchant_api_post_order_abort.c @@ -389,9 +389,9 @@ TALER_MERCHANT_order_abort (struct GNUNET_CURL_Context *ctx, oah->num_coins = num_coins; oah->coins = GNUNET_new_array (num_coins, struct TALER_MERCHANT_AbortCoin); - memcpy (oah->coins, - coins, - num_coins * sizeof (struct TALER_MERCHANT_AbortCoin)); + GNUNET_memcpy (oah->coins, + coins, + num_coins * sizeof (struct TALER_MERCHANT_AbortCoin)); { CURL *eh; diff --git a/src/lib/merchant_api_post_order_pay.c b/src/lib/merchant_api_post_order_pay.c index c22e9ba5..c631085c 100644 --- a/src/lib/merchant_api_post_order_pay.c +++ b/src/lib/merchant_api_post_order_pay.c @@ -686,9 +686,9 @@ TALER_MERCHANT_order_pay_frontend ( oph->num_coins = num_coins; oph->coins = GNUNET_new_array (num_coins, struct TALER_MERCHANT_PaidCoin); - memcpy (oph->coins, - coins, - num_coins * sizeof (struct TALER_MERCHANT_PaidCoin)); + GNUNET_memcpy (oph->coins, + coins, + num_coins * sizeof (struct TALER_MERCHANT_PaidCoin)); eh = TALER_MERCHANT_curl_easy_get_ (oph->url); if (GNUNET_OK != diff --git a/src/testing/testing_api_cmd_abort_order.c b/src/testing/testing_api_cmd_abort_order.c index b9f7682b..c90851f8 100644 --- a/src/testing/testing_api_cmd_abort_order.c +++ b/src/testing/testing_api_cmd_abort_order.c @@ -200,9 +200,9 @@ abort_cb (void *cls, as->acs_length = num_aborts; as->acs = GNUNET_new_array (num_aborts, struct TALER_MERCHANT_AbortedCoin); - memcpy (as->acs, - res, - num_aborts * sizeof (struct TALER_MERCHANT_AbortedCoin)); + GNUNET_memcpy (as->acs, + res, + num_aborts * sizeof (struct TALER_MERCHANT_AbortedCoin)); } GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Successful pay-abort (HTTP status: %u)\n", diff --git a/src/testing/testing_api_cmd_patch_instance.c b/src/testing/testing_api_cmd_patch_instance.c index 7ff966e0..756a6db7 100644 --- a/src/testing/testing_api_cmd_patch_instance.c +++ b/src/testing/testing_api_cmd_patch_instance.c @@ -308,9 +308,9 @@ TALER_TESTING_cmd_merchant_patch_instance ( pis->payto_uris_length = payto_uris_length; pis->payto_uris = GNUNET_new_array (payto_uris_length, const char *); - memcpy (pis->payto_uris, - payto_uris, - sizeof (const char *) * payto_uris_length); + GNUNET_memcpy (pis->payto_uris, + payto_uris, + sizeof (const char *) * payto_uris_length); pis->name = name; pis->address = address; /* ownership transfer! */ pis->jurisdiction = jurisdiction; /* ownership transfer! */ |