summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-09-15 13:51:46 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-09-15 13:51:46 +0200
commit5c6d5f5316bf625b66d2592bd335de33b54cfed1 (patch)
tree16a2e6f4d374cf070fe748dbc7cba693ca797a7a
parent9ffe1df62622ca37d126e0f81aea97a515ef0ac4 (diff)
downloadvdr-5c6d5f5316bf625b66d2592bd335de33b54cfed1.tar.gz
vdr-5c6d5f5316bf625b66d2592bd335de33b54cfed1.tar.bz2
Fixed handling errors in 'readstring()'
-rw-r--r--HISTORY1
-rw-r--r--tools.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index fe07e0bc..7c888758 100644
--- a/HISTORY
+++ b/HISTORY
@@ -171,3 +171,4 @@ Video Disk Recorder Revision History
2000-09-15: Version 0.64
- Video files now have the 'group read' bit set.
+- Fixed handling errors in 'readstring()'.
diff --git a/tools.c b/tools.c
index e081ee79..bd35f928 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 1.14 2000/09/09 12:53:34 kls Exp $
+ * $Id: tools.c 1.15 2000/09/15 13:30:24 kls Exp $
*/
#define _GNU_SOURCE
@@ -69,7 +69,7 @@ int readstring(int filedes, char *buffer, int size, bool wait = false)
break; // EOF
if (n < 0) {
LOG_ERROR;
- break;
+ return -1;
}
rbytes += n;
if (rbytes == size)