fix strncat and wcsncat (double null termination)

also modify wcsncpy to use the same loop logic
3 files changed