diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-07-08 17:20:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-07-08 17:20:23 +0000 |
commit | d8c53b12a818ff7cf82d06a1a69c395bdef85ee6 (patch) | |
tree | 0ebb0db416c157fcfde51a941185819dd12d51fd /src/arm/arm_api.c | |
parent | 5184c17d32a39c928c2a0fec3ee1ad098bbaa562 (diff) | |
download | gnunet-d8c53b12a818ff7cf82d06a1a69c395bdef85ee6.tar.gz gnunet-d8c53b12a818ff7cf82d06a1a69c395bdef85ee6.zip |
-avoid calling memcpy() with NULL argument, even if len is 0
Diffstat (limited to 'src/arm/arm_api.c')
-rw-r--r-- | src/arm/arm_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arm/arm_api.c b/src/arm/arm_api.c index 19b192378..c8c5e8ba6 100644 --- a/src/arm/arm_api.c +++ b/src/arm/arm_api.c | |||
@@ -767,7 +767,7 @@ change_service (struct GNUNET_ARM_Handle *h, | |||
767 | type); | 767 | type); |
768 | msg->reserved = htonl (0); | 768 | msg->reserved = htonl (0); |
769 | msg->request_id = GNUNET_htonll (op->id); | 769 | msg->request_id = GNUNET_htonll (op->id); |
770 | memcpy (&msg[1], | 770 | GNUNET_memcpy (&msg[1], |
771 | service_name, | 771 | service_name, |
772 | slen); | 772 | slen); |
773 | GNUNET_MQ_send (h->mq, | 773 | GNUNET_MQ_send (h->mq, |