ipmi: Remove non-standard c++ array syntax
Change-Id: I1c62222ab8584ffc5af6d99c80b93f5e93b4e26f
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/test/ipmi_delete_unittest.cpp b/test/ipmi_delete_unittest.cpp
index afd3968..777e417 100644
--- a/test/ipmi_delete_unittest.cpp
+++ b/test/ipmi_delete_unittest.cpp
@@ -32,7 +32,7 @@
req->cmd = static_cast<std::uint8_t>(BlobOEMCommands::bmcBlobDelete);
req->crc = 0;
// length() doesn't include the nul-terminator.
- std::memcpy(req->blobId, blobId.c_str(), blobId.length());
+ std::memcpy(req + 1, blobId.c_str(), blobId.length());
dataLen = sizeof(struct BmcBlobDeleteTx) + blobId.length();
@@ -55,7 +55,7 @@
req->crc = 0;
// length() doesn't include the nul-terminator, request buff is initialized
// to 0s
- std::memcpy(req->blobId, blobId.c_str(), blobId.length());
+ std::memcpy(req + 1, blobId.c_str(), blobId.length());
dataLen = sizeof(struct BmcBlobDeleteTx) + blobId.length() + 1;
@@ -80,7 +80,7 @@
req->crc = 0;
// length() doesn't include the nul-terminator, request buff is initialized
// to 0s
- std::memcpy(req->blobId, blobId.c_str(), blobId.length());
+ std::memcpy(req + 1, blobId.c_str(), blobId.length());
dataLen = sizeof(struct BmcBlobDeleteTx) + blobId.length() + 1;