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_open_unittest.cpp b/test/ipmi_open_unittest.cpp
index 8232340..5b18631 100644
--- a/test/ipmi_open_unittest.cpp
+++ b/test/ipmi_open_unittest.cpp
@@ -35,7 +35,7 @@
req->crc = 0;
req->flags = 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 BmcBlobOpenTx) + blobId.length();
@@ -59,7 +59,7 @@
req->flags = 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 BmcBlobOpenTx) + blobId.length() + 1;
@@ -87,7 +87,7 @@
req->flags = 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 BmcBlobOpenTx) + blobId.length() + 1;
uint16_t returnedSession = 0x54;