summaryrefslogtreecommitdiffstats
path: root/src/Hooks
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2009-11-11 22:30:27 +0100
committerKarel Klic <kklic@redhat.com>2009-11-11 22:30:27 +0100
commit07a12979cbf321c03c615f921aec601492e8d196 (patch)
treea0eba8c5b0cf06be829c378ca8704470e37a036b /src/Hooks
parent4bb5f0163c1cf3c65745ea06f1b42545ecaa35d7 (diff)
parent640af192338643b3c9e6fbe0304726e951239c2b (diff)
downloadabrt-07a12979cbf321c03c615f921aec601492e8d196.tar.gz
abrt-07a12979cbf321c03c615f921aec601492e8d196.tar.xz
abrt-07a12979cbf321c03c615f921aec601492e8d196.zip
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src/Hooks')
-rw-r--r--src/Hooks/CCpp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Hooks/CCpp.cpp b/src/Hooks/CCpp.cpp
index 1c152e6c..0f95d05b 100644
--- a/src/Hooks/CCpp.cpp
+++ b/src/Hooks/CCpp.cpp
@@ -188,7 +188,7 @@ int main(int argc, char** argv)
dd.SaveText(FILENAME_ANALYZER, "CCpp");
dd.SaveText(FILENAME_EXECUTABLE, executable);
dd.SaveText(FILENAME_CMDLINE, cmdline);
- dd.SaveText(FILENAME_REASON, std::string("Process was terminated by signal ") + signal_str);
+ dd.SaveText(FILENAME_REASON, ssprintf("Process was terminated by signal %s", signal_str).c_str());
int len = strlen(path);
snprintf(path + len, sizeof(path) - len, "/"FILENAME_COREDUMP);
@@ -221,7 +221,7 @@ int main(int argc, char** argv)
}
catch (CABRTException& e)
{
- error_msg_and_die("%s", e.what().c_str());
+ error_msg_and_die("%s", e.what());
}
catch (std::exception& e)
{