fix overflow issue with strncat(TSAM_10563)