diff options
author | João Abecasis <joao@abecasis.name> | 2009-11-20 12:50:41 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2009-11-23 12:13:17 (GMT) |
commit | 6adeb8be007bfdeaeb7e1d4a730abf32dbdb0f7d (patch) | |
tree | 2398fdf65014314156c4850ce22fecc0535f89c0 /doc/src/snippets/code/src_script_qscriptengineagent.cpp | |
parent | d180aa547065698cf18d25c65730689ae456c802 (diff) | |
download | Qt-6adeb8be007bfdeaeb7e1d4a730abf32dbdb0f7d.zip Qt-6adeb8be007bfdeaeb7e1d4a730abf32dbdb0f7d.tar.gz Qt-6adeb8be007bfdeaeb7e1d4a730abf32dbdb0f7d.tar.bz2 |
Fix regression introduced in 1e6b424b692b20dcfec920f8d3563e520ec1ff05
When processing the result of QIODevice::readLine, forgot to take into
account that a '\0' is appended to the array. The terminating character
is not accounted for in the number of bytes returned.
By pre-allocating a byte for the terminating null character, we make
sure we'll actually read 16k bytes on each and every iteration.
Task-number: QTBUG-6019
Reviewed-by: Thiago Macieira
(cherry picked from commit b7692016f282251002b3e85dfcb5567bd91a12c0)
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptengineagent.cpp')
0 files changed, 0 insertions, 0 deletions