d8d8bc
From de0402358f6d363a57e6fef98c92a9eef5690cdd Mon Sep 17 00:00:00 2001
d8d8bc
From: Karel Zak <kzak@redhat.com>
d8d8bc
Date: Mon, 6 Jun 2022 16:14:30 +0200
d8d8bc
Subject: irqtop: fix compiler warning [-Werror=format-truncation=]
d8d8bc
d8d8bc
Upstream: http://github.com/util-linux/util-linux/commit/b7865ae165bb43b1626c6928250843cc2c96be57
d8d8bc
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=2078787
d8d8bc
Signed-off-by: Karel Zak <kzak@redhat.com>
d8d8bc
---
d8d8bc
 sys-utils/irq-common.c | 2 +-
d8d8bc
 1 file changed, 1 insertion(+), 1 deletion(-)
d8d8bc
d8d8bc
diff --git a/sys-utils/irq-common.c b/sys-utils/irq-common.c
d8d8bc
index 22080b96d..e39ef823c 100644
d8d8bc
--- a/sys-utils/irq-common.c
d8d8bc
+++ b/sys-utils/irq-common.c
d8d8bc
@@ -426,7 +426,7 @@ struct libscols_table *get_scols_cpus_table(struct irq_output *out,
d8d8bc
 	struct libscols_table *table;
d8d8bc
 	struct libscols_column *cl;
d8d8bc
 	struct libscols_line *ln;
d8d8bc
-	char colname[sizeof(stringify_value(LONG_MAX))];
d8d8bc
+	char colname[sizeof("cpu") + sizeof(stringify_value(LONG_MAX))];
d8d8bc
 	size_t i;
d8d8bc
 
d8d8bc
 	if (prev) {
d8d8bc
-- 
d8d8bc
2.36.1
d8d8bc