mb/prodrive/hermes: Use `snprintf()` to handle strings
commitbf541422e9ed40ad0903f8e4a46c0f00d3f141a6
authorAngel Pons <th3fanbus@gmail.com>
Tue, 11 Oct 2022 19:45:30 +0000 (11 21:45 +0200)
committerFelix Singer <felixsinger@posteo.net>
Thu, 13 Oct 2022 06:46:23 +0000 (13 06:46 +0000)
tree7b0a642856e445aa28eb53e76fd8226f708dd588
parentcdc156ebd17655646eb178784e96036f58ac7859
mb/prodrive/hermes: Use `snprintf()` to handle strings

Strings in C are highly cursed. Use `snprintf()` to minimize the
potential of running into undefined behavior in the future.

Change-Id: I3caef25bc7676ac84bb1c40efe6d16f50f8f4d26
Signed-off-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68323
Reviewed-by: Patrick Georgi <patrick@coreboot.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
src/mainboard/prodrive/hermes/mainboard.c