summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/file-get-translator.c2
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);
}