Changed calls to strncat() to safe_strcat(). Fix from SAMBA_2_0 branch.