On 11.09.18 16:45, [ext] Andreas J. Reichel wrote:
From: Andreas Reichel <[email protected]>

gcc already handles that because of the pointer type

Actually, other compilers as well :), but I applied the fix as is.

Thanks,
Jan


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;
                }
        }

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

--
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/1302d90f-66c6-f9e0-75ad-a219ad8283ed%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to