Cc: Marvin Häuser <mhaeu...@posteo.de> Cc: Pedro Falcato <pedro.falc...@gmail.com> Cc: Vitaly Cheptsov <vit9...@protonmail.com> Signed-off-by: Savva Mitrofanov <savva...@gmail.com> --- Features/Ext4Pkg/Ext4Dxe/Inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Features/Ext4Pkg/Ext4Dxe/Inode.c b/Features/Ext4Pkg/Ext4Dxe/Inode.c index 831f5946e870..142ee6e3d78a 100644 --- a/Features/Ext4Pkg/Ext4Dxe/Inode.c +++ b/Features/Ext4Pkg/Ext4Dxe/Inode.c @@ -158,7 +158,7 @@ Ext4Read ( WasRead = HoleLen > RemainingRead ? RemainingRead : HoleLen; // Potential improvement: In the future, we could get the file hole's total // size and memset all that - SetMem (Buffer, WasRead, 0); + ZeroMem (Buffer, WasRead); } else { ExtentStartBytes = MultU64x32 ( LShiftU64 (Extent.ee_start_hi, 32) | @@ -431,7 +431,7 @@ Ext4FileCreateTime ( Inode = File->Inode; if (!EXT4_INODE_HAS_FIELD (Inode, i_crtime)) { - SetMem (Time, sizeof (EFI_TIME), 0); + ZeroMem (Time, sizeof (EFI_TIME)); return; } -- 2.37.0 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#91647): https://edk2.groups.io/g/devel/message/91647 Mute This Topic: https://groups.io/mt/92531463/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-