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

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