summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-03-28 18:20:12 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-03-28 18:20:12 +0000
commitd2fc7cdac3a6e348bee81295408baf4cce1984a9 (patch)
tree8e4eff2387ecf4c1fd18428906df9fa74d0ed812 /lib/libc
parent0e5dbfde61624564972d4ae2cbda753e71ac8bd1 (diff)
correct arg order addi/subi, newer gas catches this
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/hppa/string/strlcpy.S12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/arch/hppa/string/strlcpy.S b/lib/libc/arch/hppa/string/strlcpy.S
index 6ffa8a21a15..f8b164588f8 100644
--- a/lib/libc/arch/hppa/string/strlcpy.S
+++ b/lib/libc/arch/hppa/string/strlcpy.S
@@ -1,7 +1,7 @@
-/* $OpenBSD: strlcpy.S,v 1.2 2000/01/12 00:08:41 mickey Exp $ */
+/* $OpenBSD: strlcpy.S,v 1.3 2001/03/28 18:20:11 mickey Exp $ */
/*
- * Copyright (c) 1999 Michael Shalayeff
+ * Copyright (c) 1999-2001 Michael Shalayeff
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -34,7 +34,7 @@
#if defined(LIBC_SCCS)
.text
- .asciz "$OpenBSD: strlcpy.S,v 1.2 2000/01/12 00:08:41 mickey Exp $"
+ .asciz "$OpenBSD: strlcpy.S,v 1.3 2001/03/28 18:20:11 mickey Exp $"
.align 4
#endif
@@ -44,8 +44,8 @@
*/
ENTRY(strlcpy)
- addi arg1, 1, ret0
- subi arg2, 1, t2
+ addi 1, arg1, ret0
+ subi 1, arg2, t2
$strlcpy_loop
ldbs,ma 1(arg1), t1
@@ -64,3 +64,5 @@ $strlcpy_nzero
sub arg1, ret0, ret0
EXIT(strlcpy)
+
+ .end