]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix comments in m_trampoline.S for amd64/Solaris redirs.
authorIvo Raisr <ivosh@ivosh.net>
Wed, 11 Jan 2017 21:17:42 +0000 (21:17 +0000)
committerIvo Raisr <ivosh@ivosh.net>
Wed, 11 Jan 2017 21:17:42 +0000 (21:17 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16197

coregrind/m_trampoline.S

index da163a3806060d9f394cdacd59eaf84e77f5eeab..4a53ab0de3e316368c71a6cee08517bde0f93ff1 100644 (file)
@@ -1527,7 +1527,7 @@ VG_(amd64_solaris_REDIR_FOR_strcpy):
         movq    %rdi, %rdx              /* copy s1 */
 1:
         movzbl  (%rsi), %eax            /* load one input character */
-        movb    %al, (%rdx)             /* copy to output/s2 */
+        movb    %al, (%rdx)             /* copy to output/s1 */
         incq    %rsi                    /* skip to the next output character */
         incq    %rdx                    /* skip to the next input character */
         testb   %al, %al                /* is the copied character null? */
@@ -1548,7 +1548,7 @@ VG_(amd64_solaris_REDIR_FOR_strncpy):
         testq   %rdx, %rdx              /* is the remaining size zero? */
         jz      3f                      /* yes, all done */
         movzbl  (%rsi), %eax            /* load one input character */
-        movb    %al, (%rcx)             /* copy to output/s2 */
+        movb    %al, (%rcx)             /* copy to output/s1 */
         decq    %rdx                    /* decrement the remaining size */
         incq    %rsi                    /* skip to the next output character */
         incq    %rcx                    /* skip to the next input character */