Browse Source

Fix fread return value check

tags/nilmdb-1.5.0
Jim Paris 11 years ago
parent
commit
6091e44561
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      nilmdb/server/rocket.c

+ 1
- 1
nilmdb/server/rocket.c View File

@@ -537,7 +537,7 @@ static PyObject *Rocket_extract_string(Rocket *self, PyObject *args)
/* read and format in a loop */ \
for (i = 0; i < self->layout_count; i++) { \
if (fread(&disktype, bytes, \
1, self->file) < 0) \
1, self->file) != 1) \
goto err; \
disktype = letoh(disktype); \
ret = sprintf(&str[len], " " fmt, \


Loading…
Cancel
Save