summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-03-28 18:20:46 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-03-28 18:20:46 +0000
commitf137b0437d3c9390255ea387c16f0e514dd99554 (patch)
tree10ac2713c4b50246077d0eecedf06602db24eddc
parentd2fc7cdac3a6e348bee81295408baf4cce1984a9 (diff)
sync w/ libc
-rw-r--r--sys/lib/libkern/arch/hppa/strlcpy.S12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/lib/libkern/arch/hppa/strlcpy.S b/sys/lib/libkern/arch/hppa/strlcpy.S
index 8783a3f72d9..f6271f2ccde 100644
--- a/sys/lib/libkern/arch/hppa/strlcpy.S
+++ b/sys/lib/libkern/arch/hppa/strlcpy.S
@@ -1,7 +1,7 @@
-/* $OpenBSD: strlcpy.S,v 1.1 2000/12/29 19:04:41 mickey Exp $ */
+/* $OpenBSD: strlcpy.S,v 1.2 2001/03/28 18:20:45 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.1 2000/12/29 19:04:41 mickey Exp $"
+ .asciz "$OpenBSD: strlcpy.S,v 1.2 2001/03/28 18:20:45 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