summaryrefslogtreecommitdiff
path: root/src/analysis/db
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-01-07 16:34:28 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-01-07 16:34:28 (GMT)
commitfeecaba38bc334308c557f51c8b34a7e036d704b (patch)
treec1060ca3773972d6bf82028040817ebee75a6cf0 /src/analysis/db
parent8599cd772627ed8f7c923615fe991808d3f5c882 (diff)
Fixed a bug when reading the compressed database.
Diffstat (limited to 'src/analysis/db')
-rw-r--r--src/analysis/db/cdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analysis/db/cdb.c b/src/analysis/db/cdb.c
index 78f2aa8..3199308 100644
--- a/src/analysis/db/cdb.c
+++ b/src/analysis/db/cdb.c
@@ -539,9 +539,9 @@ DBError g_cdb_archive_write(const GCdbArchive *archive)
goto afta_error;
}
- for (len = safe_read(fd, buffer, ARCHIVE_RBUF_SIZE);
+ for (len = safe_read_partial(fd, buffer, ARCHIVE_RBUF_SIZE);
len > 0;
- len = safe_read(fd, buffer, ARCHIVE_RBUF_SIZE))
+ len = safe_read_partial(fd, buffer, ARCHIVE_RBUF_SIZE))
{
if (archive_write_data(out, buffer, len) != len)
goto afta_error;