summaryrefslogtreecommitdiff
path: root/BaseTools
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2017-07-19 10:55:47 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2017-08-01 10:51:08 +0800
commit13d79c2976205ffc2ec380e87163b39ada96bc03 (patch)
tree0042912e832c83c62a8bc6eb921428f47103a06a /BaseTools
parent67f3d09924b0fedf36833d11e599c609d319d0ea (diff)
downloadedk2-13d79c2976205ffc2ec380e87163b39ada96bc03.zip
edk2-13d79c2976205ffc2ec380e87163b39ada96bc03.tar.gz
edk2-13d79c2976205ffc2ec380e87163b39ada96bc03.tar.bz2
BaseTools/GenFfs: Fix a segmentation fault from vsprintf()/vfprintf()
Fixes: https://bugzilla.tianocore.org/show_bug.cgi?id=536 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')
-rw-r--r--BaseTools/Source/C/GenFfs/GenFfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/Source/C/GenFfs/GenFfs.c b/BaseTools/Source/C/GenFfs/GenFfs.c
index 91632a9..eaef8a2 100644
--- a/BaseTools/Source/C/GenFfs/GenFfs.c
+++ b/BaseTools/Source/C/GenFfs/GenFfs.c
@@ -1,7 +1,7 @@
/** @file
This file contains functions required to generate a Firmware File System file.
-Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2004 - 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
@@ -116,7 +116,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
@@ -736,7 +736,7 @@ Returns:
continue;
}
- Error (NULL, 0, 1000, "Unknown option", argv[0]);
+ Error (NULL, 0, 1000, "Unknown option", "%s", argv[0]);
goto Finish;
}