From dd8e656e6cf97c60288aafdc7844bfcebb1787f5 Mon Sep 17 00:00:00 2001 From: tiamak <57602242+t1amak@users.noreply.github.com> Date: Wed, 12 Nov 2025 23:02:47 +0100 Subject: [PATCH] Fix snprintf format for 64-bit tag variable --- src/wallet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wallet.cpp b/src/wallet.cpp index fb99063..d3203ba 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -23,6 +23,7 @@ #include "keccak.h" #include "crypto.h" #include +#include 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;