]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
ras-report: fix coding style and string fill issues
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 18 Jul 2024 10:58:23 +0000 (12:58 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 18 Jul 2024 11:04:52 +0000 (13:04 +0200)
commit7eef814fa7aeb8064316dca7e339af80af135548
tree5fc03719ae6d89c3c8b44550f236c5092273ff44
parent1d081729a82ab62bcf113facd36b551dda951213
ras-report: fix coding style and string fill issues

Don't use unsafe sprintf(). Instead, re-implement the logic in
a way that buffer overflows won't occur.

While here, also avoid lines longer than 80 columns when possible.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
ras-report.c