BaseTools: fix format-security build warnings
Fix build warnings of "format not a string literal and no format arguments [-Wformat-security]" for BaseTools, while using "gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)". Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo <heyi.guo@linaro.org> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -3866,7 +3866,7 @@ int file;
|
||||
/* MR10 */ _gen(" * ");
|
||||
/* MR10 */ for (i=0 ; i < Save_argc ; i++) {
|
||||
/* MR10 */ _gen(" ");
|
||||
/* MR10 */ _gen(Save_argv[i]);
|
||||
/* MR10 */ _gen1("%s", Save_argv[i]);
|
||||
/* MR10 */ };
|
||||
_gen("\n");
|
||||
_gen(" *\n");
|
||||
|
Reference in New Issue
Block a user