diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-10-21 11:28:54 +0200 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-10-25 10:46:11 +0200 |
commit | 02c6760c96b579f6221933ecfb158bbac4575886 (patch) | |
tree | b617e81f0d87c8c071f410ca592f19269785c81a | |
parent | 08bcaf20b1320845ff4b140423dc4023695fe0fd (diff) | |
download | edk2-02c6760c96b579f6221933ecfb158bbac4575886.tar.gz edk2-02c6760c96b579f6221933ecfb158bbac4575886.tar.bz2 edk2-02c6760c96b579f6221933ecfb158bbac4575886.zip |
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>
-rw-r--r-- | OvmfPkg/XenBusDxe/XenStore.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/OvmfPkg/XenBusDxe/XenStore.c b/OvmfPkg/XenBusDxe/XenStore.c index fb00e7393b..aa3ff7d301 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);
}
|