]> git.ipfire.org Git - thirdparty/grub.git/commit
osdep/linux/ofpath: Correct path_size calculation
authorNicholas Vinson <nvinson234@gmail.com>
Wed, 25 Feb 2026 00:48:40 +0000 (19:48 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 26 Feb 2026 14:51:56 +0000 (15:51 +0100)
commitb71ae6db282fa25ca4ea6f8169161a2131ee6b9a
tree6ce858ff8641ba2f0c289aa22982c13a83776360
parent675d8581037dc8996cf6db21a61d26e28f7d44c1
osdep/linux/ofpath: Correct path_size calculation

path_size is computed in part by taking the size of the format string.
However, the format string contains conversion specifiers. These
conversion specifiers are included in the size calculation resulting in
a size calculation that is larger than it needs to be. This patch
corrects that error by removing the conversion specifiers when computing
path_size.

Signed-off-by: Nicholas Vinson <nvinson234@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/osdep/linux/ofpath.c