]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/GenVtf: Provide string width in '%s' specifier in format string
authorHao Wu <hao.a.wu@intel.com>
Sat, 8 Oct 2016 07:28:21 +0000 (15:28 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 8 Nov 2016 08:38:15 +0000 (16:38 +0800)
commit5baa399e50854317c8788bc1cbae09c1af3b34c6
treee4a86d7f7a08a7b6403d2acff47c6fc16c5edae8
parent2a9afe80c3390d2f3540fbb461bb398e49159838
BaseTools/GenVtf: Provide string width in '%s' specifier in format string

String width is not specified for '%s' specifier in the format string for
scanf functions.

This commit now specifies the string length for '%s' in format strings
according to the size of receiving buffers.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/C/GenVtf/GenVtf.c