]> git.proxmox.com Git - mirror_edk2.git/commit - EmbeddedPkg/Universal/MmcDxe/Diagnostics.c
EmbeddedPkg/MmcDxe: eliminate deprecated string function calls
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 24 Oct 2016 17:33:31 +0000 (18:33 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 28 Oct 2016 14:54:00 +0000 (15:54 +0100)
commit4b335e4b7619eb12240de84cd256e5d0c3d6c84c
tree89a440749f7670e707b74a0e6f9e79a97f79b194
parente2dede1bc41acdc3e921144e12f471def562d45f
EmbeddedPkg/MmcDxe: eliminate deprecated string function calls

Get rid of calls to unsafe string functions. These are deprecated and may
be removed in the future.

Note that this also fixes an existing issue in the code, where the buffer
may be overrun by one character when en == mLogRemainChar, in which case
the NUL terminator ends up after the end of the buffer.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
EmbeddedPkg/Universal/MmcDxe/Diagnostics.c