]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/C/VolInfo/VolInfo.c
BaseTools/VolInfo: Provide string width in '%s' specifier in format string
authorHao Wu <hao.a.wu@intel.com>
Tue, 11 Oct 2016 08:08:16 +0000 (16:08 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 8 Nov 2016 08:38:18 +0000 (16:38 +0800)
commitd6a1ce3b130800b84c1335a810798e6147eca431
treebd7422762e0e49d6a329c52756f9d4732043e8d1
parent5baa399e50854317c8788bc1cbae09c1af3b34c6
BaseTools/VolInfo: 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/VolInfo/VolInfo.c