Blame SOURCES/0017-irqtop-fix-compiler-warning-Werror-format-truncation.patch

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