fix argument to 'sizeof' in 'snprintf' call is the same expression as the destination