OvmfPkg/XenBusDxe: eliminate AsciiStrCpy() calls

AsciiStrCpy() is deprecated / disabled under the
DISABLE_NEW_DEPRECATED_INTERFACES feature test macro.

Cc: Anthony PERARD <anthony.perard@citrix.com>
Cc: Gary Lin <glin@suse.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=166
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Gary Lin <glin@suse.com>
Tested-by: Gary Lin <glin@suse.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
Laszlo Ersek 2016-10-21 11:28:54 +02:00
parent 08bcaf20b1
commit 02c6760c96
1 changed files with 2 additions and 5 deletions

View File

@ -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);
}