aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_api.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/fs/fs_api.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/fs/fs_api.c')
-rw-r--r--src/fs/fs_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c
index 7ebcd093e..1e8af23c5 100644
--- a/src/fs/fs_api.c
+++ b/src/fs/fs_api.c
@@ -581,7 +581,7 @@ GNUNET_FS_data_reader_copy_ (void *cls,
581 GNUNET_free_non_null (data); 581 GNUNET_free_non_null (data);
582 return 0; 582 return 0;
583 } 583 }
584 memcpy (buf, &data[offset], max); 584 GNUNET_memcpy (buf, &data[offset], max);
585 return max; 585 return max;
586} 586}
587 587