From 9b3a87f37c4e829386ceb10de974d409a31adcf7 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 28 Aug 2013 23:20:41 +0200 Subject: Optimize translator string copy * libnetfs/file-get-translator.c (netfs_S_file_get_translator): Call memcpy instead of memmove. --- libnetfs/file-get-translator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libnetfs') 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); } -- cgit v1.2.3