diff options
author | Baraneedharan Anbazhagan <anbazhgan@hp.com> | 2020-12-09 10:16:52 -0600 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-12-14 02:11:33 +0000 |
commit | 1f304300ffe64d47efc2f4d845da3081fd2b86a4 (patch) | |
tree | e28e99db9a6fc14e6f67b5f232317c522596c45a /MdeModulePkg | |
parent | d4633b36b94f7b4a1f41901657cbbff452173d35 (diff) | |
download | edk2-1f304300ffe64d47efc2f4d845da3081fd2b86a4.zip edk2-1f304300ffe64d47efc2f4d845da3081fd2b86a4.tar.gz edk2-1f304300ffe64d47efc2f4d845da3081fd2b86a4.tar.bz2 |
MdeModulePkg: Fix SetMem parameter in OnigurumaUefiPort
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3085
Coding error in converting memset call to SetMem - Length and Value
is not swapped on calling SetMem
Signed-off-by: Baraneedharan Anbazhagan <anbazhagan@hp.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.c b/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.c index 2b2b0d4..9aa7b0a 100644 --- a/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.c +++ b/MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.c @@ -93,6 +93,6 @@ void* memcpy (void *dest, const void *src, unsigned int count) void* memset (void *dest, char ch, unsigned int count)
{
- return SetMem (dest, ch, count);
+ return SetMem (dest, count, ch);
}
|