From 588f2ef2f51d7bdf209820bfb244034863601939 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 25 Oct 2009 04:35:19 -0400 Subject: Fixed many compiler warnings from g++ 4.4 --- src/post.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/post.cc') diff --git a/src/post.cc b/src/post.cc index 9b416434..90c10a3b 100644 --- a/src/post.cc +++ b/src/post.cc @@ -195,7 +195,8 @@ namespace { string name = env->reported_account()->fullname(); if (env.has(0) && env.get(0) > 2) - name = format_t::truncate(name, env.get(0) - 2, true); + name = format_t::truncate(name, env.get(0) - 2, + 2 /* account_abbrev_length */); if (env->has_flags(POST_VIRTUAL)) { if (env->must_balance()) -- cgit v1.2.3