Codebase list ciftilib / 785f451
fix stupid mistake in QFile write chunking Tim Coalson 5 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
404404 while (total < count)
405405 {
406406 int64_t maxToWrite = min(count - total, CHUNK_SIZE);
407 writeret = m_file.write((const char*)dataIn, maxToWrite);//QFile probably also chokes on large writes
407 writeret = m_file.write(((const char*)dataIn) + total, maxToWrite);//QFile probably also chokes on large writes
408408 if (writeret < 1) break;//0 or -1 means error or eof
409409 total += writeret;
410410 }