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 <g...@suse.com> and Tested-by: Gary Lin <g...@suse.com>

> Cc: Anthony PERARD <anthony.per...@citrix.com>
> Cc: Gary Lin <g...@suse.com>
> Cc: Jordan Justen <jordan.l.jus...@intel.com>
> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=166
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Laszlo Ersek <ler...@redhat.com>
> ---
> 
> 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
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to