Switch to string copy rather than memcpy so we stop past '\0' and
authormartynas <martynas@openbsd.org>
Thu, 9 Jan 2014 05:07:37 +0000 (05:07 +0000)
committermartynas <martynas@openbsd.org>
Thu, 9 Jan 2014 05:07:37 +0000 (05:07 +0000)
commit4e6ebd2a2c98161c2e497c0c110a9c484ce6e4d0
treea7cb30ad8b45d25867283556eb0ffc17580e6f71
parentd9466f66789641ff2095b16507caaa1997b92a29
Switch to string copy rather than memcpy so we stop past '\0' and
don't copy over the garbage from the source buffer (like, leaking
the canary).  OK millert@.
usr.bin/rwho/rwho.c