Fix incorrect size passed to snprintf.