]> git.proxmox.com Git - mirror_edk2.git/commitdiff
fix copyright and license block and fix a size issue.
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 25 Jan 2010 20:06:10 +0000 (20:06 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 25 Jan 2010 20:06:10 +0000 (20:06 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9811 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.c

index 7063ec092bdbf161ae284f2376749e3ccbf4beea..695a6e21b96061470c7e79500366004a2681bb6a 100644 (file)
@@ -1,14 +1,14 @@
 /** @file\r
   Provides interface to EFI_FILE_HANDLE functionality.\r
 \r
-Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
-All rights reserved. This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution.  The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
+  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved. <BR>\r
+  This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
 \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 \r
 **/\r
 \r
@@ -624,9 +624,9 @@ FileHandleGetSize (
   append the first D characters of Source to the end of Destination, where D is \r
   the lesser of Count and the StrLen() of Source. If appending those D characters \r
   will fit within Destination (whose Size is given as CurrentSize) and \r
-  still leave room for a null terminator, then those characters are appended, \r
-  starting at the original terminating null of Destination, and a new terminating \r
-  null is appended.\r
+  still leave room for a NULL terminator, then those characters are appended, \r
+  starting at the original terminating NULL of Destination, and a new terminating \r
+  NULL is appended.\r
 \r
   If appending D characters onto Destination will result in a overflow of the size\r
   given in CurrentSize the string will be grown such that the copy can be performed\r
@@ -979,12 +979,12 @@ FileHandleWriteLine(
     return (EFI_SUCCESS);\r
   }\r
 \r
-  Size = StrLen(Buffer);\r
+  Size = StrSize(Buffer) - sizeof(Buffer[0]);\r
   Status = FileHandleWrite(Handle, &Size, Buffer);\r
   if (EFI_ERROR(Status)) {\r
     return (Status);\r
   }\r
-  Size = StrLen(L"\r\n");\r
+  Size = StrSize(L"\r\n") - sizeof(CHAR16);\r
   return FileHandleWrite(Handle, &Size, L"\r\n");\r
 }\r
 \r