summaryrefslogtreecommitdiff
path: root/dist/epgdata2xmltv
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2017-03-20 18:08:49 +0100
committerJochen Dolze <vdr@dolze.de>2017-03-20 18:08:49 +0100
commitec7bd920d94e55f2d21bfa076b7e900b7b2b7537 (patch)
tree41d97df2a59f0a281c4bb2323126dead51ee89e6 /dist/epgdata2xmltv
parent7a7331beada82c7a91972189bf06a1ecf5c3d4a2 (diff)
downloadvdr-plugin-xmltv2vdr-master.tar.gz
vdr-plugin-xmltv2vdr-master.tar.bz2
Changed code for c++11 compatibilityHEADmaster
Diffstat (limited to 'dist/epgdata2xmltv')
-rw-r--r--dist/epgdata2xmltv/epgdata2xmltv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/epgdata2xmltv/epgdata2xmltv.cpp b/dist/epgdata2xmltv/epgdata2xmltv.cpp
index 9437a18..de6fb26 100644
--- a/dist/epgdata2xmltv/epgdata2xmltv.cpp
+++ b/dist/epgdata2xmltv/epgdata2xmltv.cpp
@@ -93,7 +93,7 @@ static size_t WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *da
size_t realsize = size * nmemb;
if (data->fd!=-1)
{
- write(data->fd,ptr,realsize);
+ if (write(data->fd,ptr,realsize)==-1) return -1;
data->size+=realsize;
}
return realsize;