Fix format string vulnerability detected by -Wformat-security.