diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-05-13 19:55:46 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-05-13 19:55:46 +0200 |
commit | fa2978883e1585b1eeff3a22b7a9b4f174a45ca3 (patch) | |
tree | 52800dd5062534729be80227608def6f6c0c45ac /src/fs | |
parent | 2bb2faa207e4015609100a1aca38af344c65596f (diff) |
get rid of plain memcpy calls
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/gnunet-service-fs_indexing.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/gnunet-service-fs_indexing.c b/src/fs/gnunet-service-fs_indexing.c index b5e8af95f..f3cc03adc 100644 --- a/src/fs/gnunet-service-fs_indexing.c +++ b/src/fs/gnunet-service-fs_indexing.c @@ -528,9 +528,9 @@ GNUNET_FS_add_to_index (const char *filename, ii = GNUNET_malloc (sizeof (struct IndexInfo) + slen); ii->file_id = *file_id; ii->filename = (const char *) &ii[1]; - memcpy (&ii[1], - filename, - slen); + GNUNET_memcpy (&ii[1], + filename, + slen); GNUNET_CONTAINER_DLL_insert (indexed_files_head, indexed_files_tail, ii); |