summaryrefslogtreecommitdiff
path: root/runtime/librsgt_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/librsgt_read.c')
-rw-r--r--runtime/librsgt_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/librsgt_read.c b/runtime/librsgt_read.c
index a9a5079..972b5a4 100644
--- a/runtime/librsgt_read.c
+++ b/runtime/librsgt_read.c
@@ -267,7 +267,7 @@ rsgt_tlvRecRead(FILE *fp, tlvrecord_t *rec)
rec->tlvlen = c;
}
if(fread(rec->data, (size_t) rec->tlvlen, 1, fp) != 1) {
- r = RSGTE_IO;
+ r = feof(fp) ? RSGTE_EOF : RSGTE_IO;
goto done;
}