mirror of https://github.com/acidanthera/audk.git
fixed one bug when calculate the string length.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4524 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
0657905748
commit
b7d3c63160
|
@ -305,16 +305,16 @@ Mtftp4SendRequest (
|
|||
Packet->OpCode = HTONS (Instance->Operation);
|
||||
Cur = Packet->Rrq.Filename;
|
||||
Cur = (UINT8 *) AsciiStrCpy ((CHAR8 *) Cur, (CHAR8 *) Token->Filename);
|
||||
Cur += AsciiStrLen ((CHAR8 *) Token->Filename);
|
||||
Cur += AsciiStrLen ((CHAR8 *) Token->Filename) + 1;
|
||||
Cur = (UINT8 *) AsciiStrCpy ((CHAR8 *) Cur, (CHAR8 *) Mode);
|
||||
Cur += AsciiStrLen ((CHAR8 *) Mode);
|
||||
Cur += AsciiStrLen ((CHAR8 *) Mode) + 1;
|
||||
|
||||
for (Index = 0; Index < Token->OptionCount; ++Index) {
|
||||
Cur = (UINT8 *) AsciiStrCpy ((CHAR8 *) Cur, (CHAR8 *) Options[Index].OptionStr);
|
||||
Cur += AsciiStrLen ((CHAR8 *) Options[Index].OptionStr);
|
||||
Cur += AsciiStrLen ((CHAR8 *) Options[Index].OptionStr) + 1;
|
||||
|
||||
Cur = (UINT8 *) AsciiStrCpy ((CHAR8 *) Cur, (CHAR8 *) Options[Index].ValueStr);
|
||||
Cur += AsciiStrLen ((CHAR8 *) (CHAR8 *) Options[Index].ValueStr);
|
||||
Cur += AsciiStrLen ((CHAR8 *) (CHAR8 *) Options[Index].ValueStr) + 1;
|
||||
}
|
||||
|
||||
return Mtftp4SendPacket (Instance, Nbuf);
|
||||
|
|
Loading…
Reference in New Issue