mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-24 14:14:31 +02:00
ArmPkg/SemihostFs: StrSize() cannot return 0
StrSize() account the terminating NULL character and cannot return 0. Replace StrSize() StrLen(). BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4859 Reported-by: Tormod Volden <debian.tormod@gmail.com> Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
This commit is contained in:
parent
d90bf1f973
commit
bf32c2d61f
@ -1158,7 +1158,7 @@ FileSetInfo (
|
||||
|
||||
Buffer = SystemInfo->VolumeLabel;
|
||||
|
||||
if (StrSize (Buffer) > 0) {
|
||||
if (StrLen (Buffer) > 0) {
|
||||
VolumeLabel = AllocateCopyPool (StrSize (Buffer), Buffer);
|
||||
if (VolumeLabel != NULL) {
|
||||
FreePool (mSemihostFsLabel);
|
||||
|
Loading…
x
Reference in New Issue
Block a user