about summary refs log tree commit diff
path: root/sysdeps/i386/i486
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-12-15 21:07:43 +0000
committerJakub Jelinek <jakub@redhat.com>2004-12-15 21:07:43 +0000
commitd138a182cc117f5507f2c18c3e4322f6db19ce07 (patch)
tree8e348c89f38edd71a7046298802b79df47d85731 /sysdeps/i386/i486
parent95eb6211a12e45aca7d6902fa779561563de4836 (diff)
downloadglibc-d138a182cc117f5507f2c18c3e4322f6db19ce07.tar.gz
glibc-d138a182cc117f5507f2c18c3e4322f6db19ce07.tar.xz
glibc-d138a182cc117f5507f2c18c3e4322f6db19ce07.zip
Updated to fedora-glibc-20041215T2056
Diffstat (limited to 'sysdeps/i386/i486')
-rw-r--r--sysdeps/i386/i486/bits/string.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/i386/i486/bits/string.h b/sysdeps/i386/i486/bits/string.h
index 099d720a4c..203907b146 100644
--- a/sysdeps/i386/i486/bits/string.h
+++ b/sysdeps/i386/i486/bits/string.h
@@ -1050,6 +1050,7 @@ __strncat_g (char *__dest, __const char __src[], size_t __n)
 #ifdef __i686__
   __asm__ __volatile__
     ("repne; scasb\n"
+     "movl %4, %3\n\t"
      "decl %1\n\t"
      "1:\n\t"
      "decl	%3\n\t"
@@ -1062,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" (__n)
+     :  "g" (__n), "0" (0), "1" (__tmp), "2" (__src), "3" (0xffffffff)
      : "memory", "cc");
 #else
   --__tmp;