summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/C/EfiRom/EfiRom.c
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2017-07-19 10:57:11 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2017-08-01 10:52:01 +0800
commitef6cd66ae46c7d90be6ffdf3f8ed092738292336 (patch)
tree34e3e074f54e7cf3de83059cd50d9cb469ea6875 /BaseTools/Source/C/EfiRom/EfiRom.c
parent13d79c2976205ffc2ec380e87163b39ada96bc03 (diff)
downloadedk2-ef6cd66ae46c7d90be6ffdf3f8ed092738292336.tar.gz
edk2-ef6cd66ae46c7d90be6ffdf3f8ed092738292336.tar.bz2
edk2-ef6cd66ae46c7d90be6ffdf3f8ed092738292336.zip
BaseTools/EfiRom: Fix a segmentation fault from vsprintf()/vfprintf()
Fixes: https://bugzilla.tianocore.org/show_bug.cgi?id=534 Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'BaseTools/Source/C/EfiRom/EfiRom.c')
-rw-r--r--BaseTools/Source/C/EfiRom/EfiRom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/Source/C/EfiRom/EfiRom.c b/BaseTools/Source/C/EfiRom/EfiRom.c
index c58c1523e9..84322e3df1 100644
--- a/BaseTools/Source/C/EfiRom/EfiRom.c
+++ b/BaseTools/Source/C/EfiRom/EfiRom.c
@@ -1,7 +1,7 @@
/** @file
Utility program to create an EFI option ROM image from binary and EFI PE32 files.
-Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 1999 - 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials are licensed and made available
under the terms and conditions of the BSD License which accompanies this
distribution. The full text of the license may be found at
@@ -242,7 +242,7 @@ Returns:
// Try to open the input file
//
if ((InFptr = fopen (LongFilePath (InFile->FileName), "rb")) == NULL) {
- Error (NULL, 0, 0001, "Error opening file", InFile->FileName);
+ Error (NULL, 0, 0001, "Error opening file", "%s", InFile->FileName);
return STATUS_ERROR;
}
//
@@ -1262,7 +1262,7 @@ Returns:
//
// Copyright declaration
//
- fprintf (stdout, "Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.\n\n");
+ fprintf (stdout, "Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.\n\n");
//
// Details Option