summaryrefslogtreecommitdiff
path: root/src/post.cc
diff options
context:
space:
mode:
authorDaniel Coonce <danielcoonce@gmail.com>2020-11-16 22:08:11 -0600
committerMartin Michlmayr <tbm@cyrius.com>2021-02-02 18:06:16 +0800
commitf70537632290035e56e1e4f7173a44d937b457ff (patch)
tree5689c68df9750bd7f78fc9a5500472ecdea5ed0c /src/post.cc
parent3e0d8f7aefe115f7bc318a70f0b03b86342c5142 (diff)
downloadfork-ledger-f70537632290035e56e1e4f7173a44d937b457ff.tar.gz
fork-ledger-f70537632290035e56e1e4f7173a44d937b457ff.tar.bz2
fork-ledger-f70537632290035e56e1e4f7173a44d937b457ff.zip
Create consistent buffer size.
Diffstat (limited to 'src/post.cc')
-rw-r--r--src/post.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/post.cc b/src/post.cc
index c9f28e99..24816122 100644
--- a/src/post.cc
+++ b/src/post.cc
@@ -727,7 +727,7 @@ void put_post(property_tree::ptree& st, const post_t& post)
property_tree::ptree& t(st.put("account", ""));
std::ostringstream buf;
- buf.width(sizeof(unsigned long) * 2);
+ buf.width(sizeof(intptr_t) * 2);
buf.fill('0');
buf << std::hex << reinterpret_cast<intptr_t>(post.account);