]> git.proxmox.com Git - mirror_edk2.git/commit - NetworkPkg/UefiPxeBcDxe/PxeBcSupport.c
NetworkPkg: Refine UintnToAscDecWithFormat functions logic
authorHao Wu <hao.a.wu@intel.com>
Tue, 15 Nov 2016 08:25:22 +0000 (16:25 +0800)
committerHao Wu <hao.a.wu@intel.com>
Thu, 22 Dec 2016 08:17:22 +0000 (16:17 +0800)
commit413535bb33d60417d681725af0274086630e7987
treefd7276dd72ecb80376a10e38725ad5bb4bb1dde9
parent81a108434041f6bed629123922772279d98d91a8
NetworkPkg: Refine UintnToAscDecWithFormat functions logic

This commit refines the logic for HttpBootUintnToAscDecWithFormat and
PxeBcUintnToAscDecWithFormat. It avoids using the decrement operator '--'
for array index to prevent possible mis-reports by static code checkers.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
NetworkPkg/HttpBootDxe/HttpBootSupport.c
NetworkPkg/UefiPxeBcDxe/PxeBcSupport.c