aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-12-15 20:30:16 +0000
committerUlrich Drepper <drepper@redhat.com>2004-12-15 20:30:16 +0000
commitca5d7882cff3e13c4cf101119c0dab0f991beed5 (patch)
treeac00b2bb10e63022f65e8ba1c75aade3582d4fde
parent9b359dd0eb913bd8744e0939b21e41c4d70a9971 (diff)
downloadglibc-ca5d7882cff3e13c4cf101119c0dab0f991beed5.zip
glibc-ca5d7882cff3e13c4cf101119c0dab0f991beed5.tar.gz
glibc-ca5d7882cff3e13c4cf101119c0dab0f991beed5.tar.bz2
(__strncat_g): Improve last patch.
-rw-r--r--sysdeps/i386/i486/bits/string.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/i386/i486/bits/string.h b/sysdeps/i386/i486/bits/string.h
index 0e24081..203907b 100644
--- a/sysdeps/i386/i486/bits/string.h
+++ b/sysdeps/i386/i486/bits/string.h
@@ -1050,7 +1050,7 @@ __strncat_g (char *__dest, __const char __src[], size_t __n)
#ifdef __i686__
__asm__ __volatile__
("repne; scasb\n"
- "movl %%edx, %3\n\t"
+ "movl %4, %3\n\t"
"decl %1\n\t"
"1:\n\t"
"decl %3\n\t"
@@ -1063,7 +1063,7 @@ __strncat_g (char *__dest, __const char __src[], size_t __n)
"2:\n\t"
"movb $0,(%1)"
: "=&a" (__dummy), "=&D" (__tmp), "=&S" (__src), "=&c" (__n)
- : "0" (0), "1" (__tmp), "2" (__src), "3" (0xffffffff), "d" (__n)
+ : "g" (__n), "0" (0), "1" (__tmp), "2" (__src), "3" (0xffffffff)
: "memory", "cc");
#else
--__tmp;