diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-13 14:38:51 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-13 14:38:51 +0200 |
commit | 8b3c26e60d7573aa5d5107f4d51a6b71ca58dd11 (patch) | |
tree | 73fa6b5d5ebd010682e3d2fef92e214d3831a976 /src/Hooks | |
parent | de2413718bdc0c236cff1ee84afe5bd6f0b247df (diff) | |
download | abrt-8b3c26e60d7573aa5d5107f4d51a6b71ca58dd11.tar.gz abrt-8b3c26e60d7573aa5d5107f4d51a6b71ca58dd11.tar.xz abrt-8b3c26e60d7573aa5d5107f4d51a6b71ca58dd11.zip |
lib/Plugins/CCpp.cpp: do not use temp file for gdb commands - use -ex CMD instead
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'src/Hooks')
-rw-r--r-- | src/Hooks/CCpp.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Hooks/CCpp.cpp b/src/Hooks/CCpp.cpp index 5bbdc8a2..e6768a60 100644 --- a/src/Hooks/CCpp.cpp +++ b/src/Hooks/CCpp.cpp @@ -181,7 +181,8 @@ int main(int argc, char** argv) dd.SaveText(FILENAME_CMDLINE, cmdline); dd.SaveText(FILENAME_REASON, std::string("Process was terminated by signal ") + signal_str); - snprintf(path + strlen(path), sizeof(path), "/%s", FILENAME_COREDUMP); + int len = strlen(path); + snprintf(path + len, sizeof(path) - len, "/"FILENAME_COREDUMP); int fd; /* We need coredumps to be readable by all, because |