treewide: Cleanup pedantic C++ warnings

Change-Id: I9c770506d78bd30dde1903645d9bfe92bceab44d
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/cable.cpp b/cable.cpp
index 464b812..37167c3 100644
--- a/cable.cpp
+++ b/cable.cpp
@@ -33,7 +33,6 @@
 {
     uint8_t subcommand;
     uint8_t ifNameLength;
-    uint8_t ifName[0];
 } __attribute__((packed));
 
 ipmi_ret_t cableCheck(const uint8_t* reqBuf, uint8_t* replyBuf, size_t* dataLen,
@@ -76,7 +75,7 @@
     // Maximum length one can specify, plus null terminator.
     char nameBuf[256] = {};
     // Copy the string out of the request buffer.
-    std::memcpy(&nameBuf[0], request->ifName, request->ifNameLength);
+    std::memcpy(&nameBuf[0], request + 1, request->ifNameLength);
     std::string name = nameBuf;
     int64_t count;