Replace vulnerable function 'sprintf' to 'snprintf'