summaryrefslogtreecommitdiffstats
path: root/src/Daemon/CrashWatcher.cpp
diff options
context:
space:
mode:
authorZdenek Prikryl <zprikryl@redhat.com>2009-02-26 11:22:29 +0100
committerZdenek Prikryl <zprikryl@redhat.com>2009-02-26 11:22:29 +0100
commit825f406304145d719e9b8b1eeeb70a2d78b7bf9a (patch)
tree39c092a49f12b8bc73e5f4b3371e67185104cc7e /src/Daemon/CrashWatcher.cpp
parent0e1889a7a85281a5d85b719c932dc7e104c20422 (diff)
parent2ecf540f20e3db8594d3a3fa539d338b27b3a092 (diff)
downloadabrt-825f406304145d719e9b8b1eeeb70a2d78b7bf9a.tar.gz
abrt-825f406304145d719e9b8b1eeeb70a2d78b7bf9a.tar.xz
abrt-825f406304145d719e9b8b1eeeb70a2d78b7bf9a.zip
Merge branch 'master' of git://git.fedorahosted.org/crash-catcher
Diffstat (limited to 'src/Daemon/CrashWatcher.cpp')
-rw-r--r--src/Daemon/CrashWatcher.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Daemon/CrashWatcher.cpp b/src/Daemon/CrashWatcher.cpp
index 1cf6e1f..1e447b0 100644
--- a/src/Daemon/CrashWatcher.cpp
+++ b/src/Daemon/CrashWatcher.cpp
@@ -41,7 +41,8 @@ to_string( T x )
gboolean CCrashWatcher::handle_event_cb(GIOChannel *gio, GIOCondition condition, gpointer daemon){
GIOError err;
- char buf[INOTIFY_BUFF_SIZE];
+ //char *buf = malloc(INOTIFY_BUFF_SIZE;
+ char *buf = new char[INOTIFY_BUFF_SIZE];
gsize len;
int i = 0;
err = g_io_channel_read (gio, buf, INOTIFY_BUFF_SIZE, &len);
@@ -81,6 +82,7 @@ gboolean CCrashWatcher::handle_event_cb(GIOChannel *gio, GIOCondition condition,
}
#endif /*DEBUG*/
}
+ delete[] buf;
return TRUE;
}