summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarel Klic <kklic@redhat.com>2009-10-14 09:58:17 +0200
committerKarel Klic <kklic@redhat.com>2009-10-14 09:58:17 +0200
commitd78bc9d63b6dfc7318a91669bb4e6d5fd17bcd83 (patch)
treed070e68bc2ef57a9243d9c0ab3828cd4963c4d51 /src
parent9675b33dd8e0f4b5fe4fe1ac41b3bd147b49c20f (diff)
parenta140a59401c42cc97de134a76826c321b7c84be0 (diff)
downloadabrt-d78bc9d63b6dfc7318a91669bb4e6d5fd17bcd83.tar.gz
abrt-d78bc9d63b6dfc7318a91669bb4e6d5fd17bcd83.tar.xz
abrt-d78bc9d63b6dfc7318a91669bb4e6d5fd17bcd83.zip
Merge branch 'master' of git://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src')
-rw-r--r--src/Gui/CCReporterDialog.py7
-rw-r--r--src/Hooks/CCpp.cpp3
2 files changed, 5 insertions, 5 deletions
diff --git a/src/Gui/CCReporterDialog.py b/src/Gui/CCReporterDialog.py
index 1560464..eb311f7 100644
--- a/src/Gui/CCReporterDialog.py
+++ b/src/Gui/CCReporterDialog.py
@@ -80,9 +80,8 @@ class ReporterDialog():
# thu button has been pressed (probably)
if response_id == gtk.RESPONSE_APPLY:
if not self.check_settings(daemon):
- print "smth is wrong"
dialog.stop_emission("response")
- self.wTree.get_widget("bApply").stop_emission("clicked")
+ self.wTree.get_widget("bSend").stop_emission("clicked")
def on_send_toggled(self, cell, path, model):
model[path][3] = not model[path][3]
@@ -151,10 +150,10 @@ class ReporterDialog():
response = dialog.run()
dialog.destroy()
if response == gtk.RESPONSE_NO:
- print "user cancelled reporting"
+ # user cancelled reporting
return False
if response == gtk.RESPONSE_YES:
- print "user wants to proceed with report"
+ # "user wants to proceed with report"
return True
return True
diff --git a/src/Hooks/CCpp.cpp b/src/Hooks/CCpp.cpp
index 5bbdc8a..e6768a6 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