commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 14/70: Optimize translator string copy


From: Samuel Thibault
Subject: [hurd] 14/70: Optimize translator string copy
Date: Mon, 16 Sep 2013 07:41:36 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 9b3a87f37c4e829386ceb10de974d409a31adcf7
Author: Samuel Thibault <address@hidden>
Date:   Wed Aug 28 23:20:41 2013 +0200

    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(-)

diff --git a/libnetfs/file-get-translator.c b/libnetfs/file-get-translator.c
index 3e183c1..3a54ff1 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);
        }

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]