diff --git a/rEFIt_UEFI/refit/lib.cpp b/rEFIt_UEFI/refit/lib.cpp index 79bf955ab..1da09c642 100644 --- a/rEFIt_UEFI/refit/lib.cpp +++ b/rEFIt_UEFI/refit/lib.cpp @@ -1748,9 +1748,11 @@ VOID DbgHeader(CONST CHAR8 *str) INTN len; UINTN end = AsciiSPrint(strLog, 50, "=== [ %a ] ", str); len = 50 - end; - for (INTN i = 0; i < len; i++) { - strLog[i + end] = '='; - } + // it causes memset generation ^( +// for (INTN i = 0; i < len; i++) { +// strLog[i + end] = '='; +// } + SetMem(&strLog[end], len , '='); strLog[49] = '\0'; DebugLog (1, "%a\n", strLog); }