Fix unsecure snprintf.