Fix for missing core file in the dump
Resolves openbmc/openbmc#2214
Change-Id: If01f2649335af6d2611c176eabf993796980ad2b
Signed-off-by: Jayanth Othayoth <ojayanth@in.ibm.com>
diff --git a/dump_manager.cpp b/dump_manager.cpp
index a189284..040c8cc 100644
--- a/dump_manager.cpp
+++ b/dump_manager.cpp
@@ -67,7 +67,7 @@
"-s", std::to_string(size).c_str(),
"-q",
"-v",
- "-f", fullPaths.empty() ? "" : fullPaths.front(),
+ "-f", fullPaths.empty() ? "" : fullPaths.front().c_str(),
"-t", tempType->second.c_str(),
nullptr);