summaryrefslogtreecommitdiff
path: root/InOsEmuPkg
diff options
context:
space:
mode:
Diffstat (limited to 'InOsEmuPkg')
-rw-r--r--InOsEmuPkg/Unix/Sec/PosixFileSystem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/InOsEmuPkg/Unix/Sec/PosixFileSystem.c b/InOsEmuPkg/Unix/Sec/PosixFileSystem.c
index d2d3e6da0e..855825627f 100644
--- a/InOsEmuPkg/Unix/Sec/PosixFileSystem.c
+++ b/InOsEmuPkg/Unix/Sec/PosixFileSystem.c
@@ -1493,7 +1493,7 @@ PosixFileSystmeThunkOpen (
Private->FilePath[i] = 0;
- Private->VolumeLabel = malloc (StrLen (L"EFI_EMULATED"));
+ Private->VolumeLabel = malloc (StrSize (L"EFI_EMULATED"));
if (Private->VolumeLabel == NULL) {
free (Private->FilePath);
free (Private);