Replace usage of strlcpy with snprintf

strlcpy is only available on BSDs. Also, see Ulrich Drepper's comment on the
usage of strlcpy.

http://www.sourceware.org/ml/libc-alpha/2000-08/msg00053.html