]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
irqtop: fix compiler warning [-Werror=format-truncation=]
authorKarel Zak <kzak@redhat.com>
Mon, 6 Jun 2022 14:14:30 +0000 (16:14 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 6 Jun 2022 14:14:30 +0000 (16:14 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/irq-common.c

index ded708c3e9e61dad5027c2b0488f0c736592a561..c6c1be095c9c8c26c8c1401db6a8284676f04b2d 100644 (file)
@@ -441,7 +441,7 @@ struct libscols_table *get_scols_cpus_table(struct irq_output *out,
        struct libscols_table *table;
        struct libscols_column *cl;
        struct libscols_line *ln;
-       char colname[sizeof(stringify_value(LONG_MAX))];
+       char colname[sizeof("cpu") + sizeof(stringify_value(LONG_MAX))];
        size_t i, j;
 
        if (prev) {