summaryrefslogtreecommitdiff
path: root/tools/perf/util/units.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/units.c')
-rw-r--r--tools/perf/util/units.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/units.c b/tools/perf/util/units.c
index 32c39cfe209b..4c6a86e1cb54 100644
--- a/tools/perf/util/units.c
+++ b/tools/perf/util/units.c
@@ -64,7 +64,7 @@ unsigned long convert_unit(unsigned long value, char *unit)
int unit_number__scnprintf(char *buf, size_t size, u64 n)
{
- char unit[4] = "BKMG";
+ char unit[] = "BKMG";
int i = 0;
while (((n / 1024) > 1) && (i < 3)) {