Add null termination for eSEL data

Change-Id: If55367f35cfcf35f0dff8da2d1e15865b702a5b2
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/storageaddsel.cpp b/storageaddsel.cpp
index dea892c..3bcbce3 100644
--- a/storageaddsel.cpp
+++ b/storageaddsel.cpp
@@ -182,12 +182,14 @@
 
     // Allocate enough space to represent the data in hex separated by spaces,
     // to mimic how IPMI would display the data.
-    unique_ptr<char[]> selData(new char[debuglen*3]());
+    unique_ptr<char[]> selData(new char[(debuglen*3) + 1]());
     uint32_t i = 0;
     for(i = 0; i < debuglen; i++)
     {
         sprintf(&selData[i*3], "%02x ", 0xFF & ((char*)debug)[i]);
     }
+    selData[debuglen*3] = '\0';
+
     log<level::INFO>("Received Host Event", entry("ESEL=%s", selData.get()));
 
     try