sqlCopy.c : Fix unsafe usage of strncat.

This was actually safe due to some pre-condition checking code, but gcc
4.9 was warning about it because it could detect the issue, but not the
pre-condion checking.
nomos : Use the return value of strerror_r() to avoid warning.