Use BLI_snprintf to avoid buffer overflow.