From: Andreas Reichel <[email protected]> gcc already handles that because of the pointer type
Signed-off-by: Andreas Reichel <[email protected]> --- utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.c b/utils.c index 8ba4663..3b0044c 100644 --- a/utils.c +++ b/utils.c @@ -311,8 +311,8 @@ CHAR16 *GetBootMediumPath(CHAR16 *input) for (UINTN i = len; i > 0; i--) { - if (dst[i * sizeof(CHAR16)] == L'/') { - dst[i * sizeof(CHAR16)] = L'\0'; + if (dst[i] == L'/') { + dst[i] = L'\0'; break; } } -- 2.18.0 -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/20180911144522.4796-1-andreas.reichel.ext%40siemens.com. For more options, visit https://groups.google.com/d/optout.
