update for string_printf and log format warnings

This commit is contained in:
Martin Michelsen
2022-01-30 22:46:01 -08:00
parent d5bd7fb7fc
commit 04b21f34d4
7 changed files with 22 additions and 16 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
#include "SendCommands.hh"
#include <inttypes.h>
#include <string.h>
#include <memory>
@@ -2060,7 +2061,7 @@ void send_ep3_map_list(shared_ptr<Lobby> l) {
// sends the map data for the chosen map to all players in the game
void send_ep3_map_data(shared_ptr<Lobby> l, uint32_t map_id) {
string filename = string_printf("system/ep3/map%08lX.mnm", map_id);
string filename = string_printf("system/ep3/map%08" PRIX32 ".mnm", map_id);
auto file_data = file_cache.get(filename);
string data(12, '\0');