diff options
author | João Abecasis <joao@abecasis.name> | 2009-11-16 11:36:48 (GMT) |
---|---|---|
committer | João Abecasis <joao@abecasis.name> | 2009-11-17 13:00:37 (GMT) |
commit | 6f5fb0be85b1d7cc9f93b615b5034c882e946301 (patch) | |
tree | b18d08550ce8a5b39fb20e3b3ea91afcb45ad3af /tools/linguist/lconvert | |
parent | 1e6180c1de906864d2d6d73a9e18ed67574d4ed8 (diff) | |
download | Qt-6f5fb0be85b1d7cc9f93b615b5034c882e946301.zip Qt-6f5fb0be85b1d7cc9f93b615b5034c882e946301.tar.gz Qt-6f5fb0be85b1d7cc9f93b615b5034c882e946301.tar.bz2 |
There should only be one write buffer at a time in QFile
To be sure, we should explicitly use the size of that buffer and not the
whole QRingBuffer when flushing the data.
With this change, we make violations of the one-buffer-rule explicitly
fail on flush(), but we avoid corrupting data and reading past the
buffer's end.
Reviewed-by: Markus Goetz
Diffstat (limited to 'tools/linguist/lconvert')
0 files changed, 0 insertions, 0 deletions