resolove TSAM-6227: use snprintf instead of strncpy to prevent from null string copy...