]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
ras-page-isolation: use snprintf() instead of sprintf()
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 18 Nov 2024 15:28:36 +0000 (16:28 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 18 Nov 2024 15:28:36 +0000 (16:28 +0100)
commit2ffdfe75285f2cb8675eb0c52393140747f22b61
tree8eaf0cf7402ebdf45b37ad27656afa2922c3c9ee
parent9d7510356d8a21fa3755208898ceff59bcbefec9
ras-page-isolation: use snprintf() instead of sprintf()

Use the safer snprintf() call to avoid the risk of going past the
buffer.

While here, make row_record_get_id() static.

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