Remove use of stpcpy

Use strlcat instead, which is safer.