1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Make spstrcpy actually copy strings.

This commit is contained in:
kettenis 2011-04-14 19:37:07 +00:00
parent 4da97e7394
commit 7eda92f409

View File

@ -1,4 +1,4 @@
/* $OpenBSD: locore.S,v 1.22 2011/04/14 19:34:55 kettenis Exp $ */
/* $OpenBSD: locore.S,v 1.23 2011/04/14 19:37:07 kettenis Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@ -1558,9 +1558,9 @@ LEAF_ENTRY(spstrcpy)
$spstrcpy_loop
ldbs,ma 1(%sr1, %arg1), arg7
comb,= arg4, %arg1, $spstrcpy_exit
comb,= %r0, arg7, $spstrcpy_exit
stbs,ma arg7, 1(%sr2, %arg3)
comb,<>,n %r0, arg7, $spstrcpy_loop
comb,<>,n arg4, %arg1, $spstrcpy_loop
nop
ldi ENAMETOOLONG, %ret0