summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-04-30 22:18:23 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-04-30 22:18:23 +0000
commitbb627d609c108d2090efc8c60c7fe8298e6ba128 (patch)
treebda95667dc1b02149cce6963575bf5f83af202d8 /lib/libc
parent2a3f77d11fceaf21aee20f4556183e18e7d0d5cf (diff)
don't use a2
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/m68k/string/strlcpy.S5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/arch/m68k/string/strlcpy.S b/lib/libc/arch/m68k/string/strlcpy.S
index 890fdcbdcc6..8cb0b1465e1 100644
--- a/lib/libc/arch/m68k/string/strlcpy.S
+++ b/lib/libc/arch/m68k/string/strlcpy.S
@@ -29,13 +29,12 @@
#if defined(LIBC_SCCS)
.text
- .asciz "$OpenBSD: strlcpy.S,v 1.2 1999/04/30 22:07:13 millert Exp $"
+ .asciz "$OpenBSD: strlcpy.S,v 1.3 1999/04/30 22:18:22 millert Exp $"
#endif /* LIBC_SCCS */
ENTRY(strlcpy)
movl sp@(4),a1 | a1 = dst
movl sp@(8),a0 | a0 = src
- movl a0,a2 | a2 = orig_src
movl sp@(12),d1 | d1 = orig_count
movl d1,d0 | d0 = count
beq slcloop | don't let count wrap...
@@ -56,5 +55,5 @@ slcnul:
clrb a1@ | clear last byte
slcdone:
movl a0,d0
- subl a2,d0 | return value
+ subl sp@(8),d0 | return value
rts