aboutsummaryrefslogtreecommitdiff
path: root/src/conversation/gnunet-conversation-test.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-07-08 17:20:23 +0000
committerChristian Grothoff <christian@grothoff.org>2016-07-08 17:20:23 +0000
commitd8c53b12a818ff7cf82d06a1a69c395bdef85ee6 (patch)
tree0ebb0db416c157fcfde51a941185819dd12d51fd /src/conversation/gnunet-conversation-test.c
parent5184c17d32a39c928c2a0fec3ee1ad098bbaa562 (diff)
downloadgnunet-d8c53b12a818ff7cf82d06a1a69c395bdef85ee6.tar.gz
gnunet-d8c53b12a818ff7cf82d06a1a69c395bdef85ee6.zip
-avoid calling memcpy() with NULL argument, even if len is 0
Diffstat (limited to 'src/conversation/gnunet-conversation-test.c')
-rw-r--r--src/conversation/gnunet-conversation-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conversation/gnunet-conversation-test.c b/src/conversation/gnunet-conversation-test.c
index 815c7ef11..804df4c88 100644
--- a/src/conversation/gnunet-conversation-test.c
+++ b/src/conversation/gnunet-conversation-test.c
@@ -178,7 +178,7 @@ record (void *cls,
178 (unsigned int) data_size); 178 (unsigned int) data_size);
179 rec = GNUNET_malloc (sizeof (struct Recording) + data_size); 179 rec = GNUNET_malloc (sizeof (struct Recording) + data_size);
180 rec->size = data_size; 180 rec->size = data_size;
181 memcpy (&rec[1], data, data_size); 181 GNUNET_memcpy (&rec[1], data, data_size);
182 GNUNET_CONTAINER_DLL_insert_tail (rec_head, 182 GNUNET_CONTAINER_DLL_insert_tail (rec_head,
183 rec_tail, 183 rec_tail,
184 rec); 184 rec);