From d78fab6b4e9be83b781212f6a9f3fde0c092e81d Mon Sep 17 00:00:00 2001 From: darylm503 Date: Sat, 24 Mar 2012 01:19:06 +0000 Subject: EADK (StdLib, AppPkg, StdLibPrivateInternalFiles): Python Beta Release. Clean up and clearly differentiate required and optional items in configuration files. Enable the system command and synchronize configuration options between all CPU architectures. Replace the UEFI_ENV macro with UEFI_C_SOURCE to align with Linux and Posix conventions. Update copyrights and versions and make minor cosmetic enhancements to files. Fix compiler-specific build errors. Add Python-specific ReadMe file. Signed-off-by: darylm503 Reviewed-by: geekboy15a Reviewed-by: jljusten Reviewed-by: leegrosenbaum git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13119 6f19259b-4bc3-4df7-8a09-765794883524 --- StdLib/LibC/Main/Main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'StdLib/LibC/Main') diff --git a/StdLib/LibC/Main/Main.c b/StdLib/LibC/Main/Main.c index 59a72bd630..523965fa43 100644 --- a/StdLib/LibC/Main/Main.c +++ b/StdLib/LibC/Main/Main.c @@ -4,7 +4,7 @@ All of the global data in the gMD structure is initialized to 0, NULL, or SIG_DFL; as appropriate. - Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.
+ Copyright (c) 2010 - 2012, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies this distribution. The full text of the license may be found at @@ -74,7 +74,7 @@ static char ** ArgvConvert(UINTN Argc, CHAR16 **Argv) { - size_t AVsz; /* Size of a single nArgv string */ + ssize_t AVsz; /* Size of a single nArgv string, or -1 */ UINTN count; char **nArgv; char *string; @@ -90,7 +90,7 @@ DEBUG_CODE_END(); nArgvSize = Argc; /* Determine space needed for narrow Argv strings. */ for(count = 0; count < Argc; ++count) { - AVsz = wcstombs(NULL, Argv[count], ARG_MAX); + AVsz = (ssize_t)wcstombs(NULL, Argv[count], ARG_MAX); if(AVsz < 0) { Print(L"ABORTING: Argv[%d] contains an unconvertable character.\n", count); exit(EXIT_FAILURE); -- cgit v1.2.3