summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-10-13 14:52:47 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2009-10-13 14:52:47 +0200
commit8ca5645cc850855cafa00055546464a9ad288591 (patch)
tree9d7cfea934142b22c8d25f7ddecf4bd34f213a4e /src
parent24efd6d2e6ac390c696c78bdfd0c5ee3d67c611b (diff)
parent8b3c26e60d7573aa5d5107f4d51a6b71ca58dd11 (diff)
downloadabrt-8ca5645cc850855cafa00055546464a9ad288591.tar.gz
abrt-8ca5645cc850855cafa00055546464a9ad288591.tar.xz
abrt-8ca5645cc850855cafa00055546464a9ad288591.zip
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src')
-rw-r--r--src/Hooks/CCpp.cpp3
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