From 567063024278a6245a3805d5fe2e05773c2656dd Mon Sep 17 00:00:00 2001 From: Ivo Raisr Date: Wed, 11 Jan 2017 21:17:42 +0000 Subject: [PATCH] Fix comments in m_trampoline.S for amd64/Solaris redirs. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16197 --- coregrind/m_trampoline.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coregrind/m_trampoline.S b/coregrind/m_trampoline.S index da163a3806..4a53ab0de3 100644 --- a/coregrind/m_trampoline.S +++ b/coregrind/m_trampoline.S @@ -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 */ -- 2.47.2