...
 
Commits (3)
......@@ -34,7 +34,7 @@
# SUCH DAMAGE.
#
VERSION = 3.0.8
VERSION = 3.0.9
MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
SRCDIR = $(dir $(MKFILE_PATH))
......
......@@ -7,8 +7,8 @@ Build-Depends:
binutils,
gcc-multilib [any-amd64 i386],
Standards-Version: 4.1.1
Vcs-Git: https://anonscm.debian.org/git/collab-maint/gnu-efi.git
Vcs-Browser: https://anonscm.debian.org/git/collab-maint/gnu-efi.git
Vcs-Git: https://salsa.debian.org/debian/gnu-efi.git
Vcs-Browser: https://salsa.debian.org/debian/gnu-efi
Homepage: http://sourceforge.net/projects/gnu-efi/
Package: gnu-efi
......
......@@ -71,7 +71,7 @@ RtStrnCpy (
{
UINTN Size = RtStrnLen(Src, Len);
if (Size != Len)
RtSetMem(Dest + Len, '\0', (Len - Size) * sizeof(CHAR16));
RtSetMem(Dest + Len, '\0', (UINT8)((Len - Size) * sizeof(CHAR16)));
RtCopyMem(Dest, Src, Size * sizeof(CHAR16));
}
......@@ -94,7 +94,7 @@ RtStpCpy (
}
#ifndef __GNUC__
#pragma RUNTIME_CODE(RtStrnCpy)
#pragma RUNTIME_CODE(RtStpnCpy)
#endif
CHAR16 *
RUNTIMEFUNCTION
......@@ -107,7 +107,7 @@ RtStpnCpy (
{
UINTN Size = RtStrnLen(Src, Len);
if (Size != Len)
RtSetMem(Dest + Len, '\0', (Len - Size) * sizeof(CHAR16));
RtSetMem(Dest + Size, (Len - Size) * sizeof(CHAR16), '\0');
RtCopyMem(Dest, Src, Size * sizeof(CHAR16));
return Dest + Size;
}
......@@ -126,7 +126,7 @@ RtStrCat (
}
#ifndef __GNUC__
#pragma RUNTIME_CODE(RtStrCat)
#pragma RUNTIME_CODE(RtStrnCat)
#endif
VOID
RUNTIMEFUNCTION
......@@ -136,7 +136,12 @@ RtStrnCat (
IN UINTN Len
)
{
RtStrnCpy(Dest+StrLen(Dest), Src, Len);
UINTN DestSize, Size;
DestSize = StrLen(Dest);
Size = RtStrnLen(Src, Len);
RtCopyMem(Dest + DestSize, Src, Size * sizeof(CHAR16));
Dest[DestSize + Size] = '\0';
}
#ifndef __GNUC__
......