Fix snprintf format for 64-bit tag variable

This commit is contained in:
tiamak
2025-11-12 23:02:47 +01:00
committed by GitHub
parent ff5a666834
commit dd8e656e6c

View File

@@ -23,6 +23,7 @@
#include "keccak.h"
#include "crypto.h"
#include <ios>
#include <inttypes.h>
extern "C" {
#include "crypto-ops.h"
@@ -178,7 +179,7 @@ bool Wallet::decode(const char* address)
}
char hex_buf[32];
snprintf(hex_buf, sizeof(hex_buf), "0x%lx", tag);
snprintf(hex_buf, sizeof(hex_buf), "0x%" PRIx64, tag);
m_prefix = tag;