On Fri, Oct 21, 2016 at 11:27:20PM +0200, Laszlo Ersek wrote: > AsciiStrCpy() is deprecated / disabled under the > DISABLE_NEW_DEPRECATED_INTERFACES feature test macro. >
Reviewed-by: Gary Lin <[email protected]> and Tested-by: Gary Lin <[email protected]> > Cc: Anthony PERARD <[email protected]> > Cc: Gary Lin <[email protected]> > Cc: Jordan Justen <[email protected]> > Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=166 > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Laszlo Ersek <[email protected]> > --- > > Notes: > not used in my setup, testing would be appreciated > > OvmfPkg/XenBusDxe/XenStore.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/OvmfPkg/XenBusDxe/XenStore.c b/OvmfPkg/XenBusDxe/XenStore.c > index fb00e7393bb1..aa3ff7d3017b 100644 > --- a/OvmfPkg/XenBusDxe/XenStore.c > +++ b/OvmfPkg/XenBusDxe/XenStore.c > @@ -1298,11 +1298,8 @@ XenStoreTransactionEnd ( > { > CHAR8 AbortStr[2]; > > - if (Abort) { > - AsciiStrCpy (AbortStr, "F"); > - } else { > - AsciiStrCpy (AbortStr, "T"); > - } > + AbortStr[0] = Abort ? 'F' : 'T'; > + AbortStr[1] = '\0'; > > return XenStoreSingle (Transaction, XS_TRANSACTION_END, AbortStr, NULL, > NULL); > } > -- > 2.9.2 > > > _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

