summaryrefslogtreecommitdiff
path: root/util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'util.cc')
-rw-r--r--util.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/util.cc b/util.cc
index bda2eba4..cdd1219b 100644
--- a/util.cc
+++ b/util.cc
@@ -72,16 +72,16 @@ string resolve_path(const string& path)
}
string abbreviate(const string& str, unsigned int width,
- elision_style_t elision_style, const bool is_account,
- int abbrev_length)
+ elision_style_t elision_style, const bool is_account,
+ int abbrev_length)
{
const unsigned int len = str.length();
if (len <= width)
return str;
- //assert(width < 4095);
+ assert(width < 4095);
- char buf[4096];
+ static char buf[4096];
switch (elision_style) {
case TRUNCATE_LEADING: