diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-08-28 23:20:41 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-08-28 23:20:41 +0200 |
commit | 9b3a87f37c4e829386ceb10de974d409a31adcf7 (patch) | |
tree | 3ca42ac3c38febbbc236ba1046b600061269a6f2 /libnetfs | |
parent | 82843893f464f258d31ea3a70977e8b82a72bbb5 (diff) |
Optimize translator string copy
* libnetfs/file-get-translator.c (netfs_S_file_get_translator): Call memcpy
instead of memmove.
Diffstat (limited to 'libnetfs')
-rw-r--r-- | libnetfs/file-get-translator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnetfs/file-get-translator.c b/libnetfs/file-get-translator.c index 3e183c14..3a54ff10 100644 --- a/libnetfs/file-get-translator.c +++ b/libnetfs/file-get-translator.c @@ -118,7 +118,7 @@ netfs_S_file_get_translator (struct protid *user, { if (len > *translen) *trans = mmap (0, len, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); - memmove (*trans, string, len); + memcpy (*trans, string, len); *translen = len; free (string); } |