diff options
-rw-r--r-- | OvmfPkg/XenBusDxe/XenStore.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OvmfPkg/XenBusDxe/XenStore.c b/OvmfPkg/XenBusDxe/XenStore.c index 61976f9..5757e78 100644 --- a/OvmfPkg/XenBusDxe/XenStore.c +++ b/OvmfPkg/XenBusDxe/XenStore.c @@ -1319,8 +1319,11 @@ XenStoreVSPrint ( CHAR8 *Buf;
XENSTORE_STATUS Status;
UINTN BufSize;
+ VA_LIST Marker2;
- BufSize = SPrintLengthAsciiFormat (FormatString, Marker) + 1;
+ VA_COPY (Marker2, Marker);
+ BufSize = SPrintLengthAsciiFormat (FormatString, Marker2) + 1;
+ VA_END (Marker2);
Buf = AllocateZeroPool (BufSize);
AsciiVSPrint (Buf, BufSize, FormatString, Marker);
Status = XenStoreWrite (Transaction, DirectoryPath, Node, Buf);
|