diff options
Diffstat (limited to 'src/analysis')
-rw-r--r-- | src/analysis/db/cdb.c | 4 |
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; |