summaryrefslogtreecommitdiff
path: root/vdr-vdrmanager/compressor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vdr-vdrmanager/compressor.cpp')
-rw-r--r--vdr-vdrmanager/compressor.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/vdr-vdrmanager/compressor.cpp b/vdr-vdrmanager/compressor.cpp
index 6a479f3..c8322b8 100644
--- a/vdr-vdrmanager/compressor.cpp
+++ b/vdr-vdrmanager/compressor.cpp
@@ -56,7 +56,13 @@ bool cCompressor::CompressGzip(string text) {
close(in_fd[0]);
close(out_fd[1]);
- write(in_fd[1], text.c_str(), text.length());
+ if (write(in_fd[1], text.c_str(), text.length()) != text.length())
+ {
+ close(in_fd[1]);
+ close(out_fd[0]);
+ return false;
+ }
+
close(in_fd[1]);
char buf[32*1024];