fix strncat and wcsncat (double null termination)