diff options
| author | Ahmad Samir <a.samirh78@gmail.com> | 2023-09-05 15:01:05 +0300 |
|---|---|---|
| committer | Ahmad Samir <a.samirh78@gmail.com> | 2023-09-10 17:50:11 +0300 |
| commit | 74098981bd42e6bc135c22506e5a910e37544406 (patch) | |
| tree | 1db00651da87b9b022f7c844b7a357bb0b2ae2b6 /src/sql/kernel/qsqldatabase.cpp | |
| parent | 1849489315fc6ee8bc08c4bd0e1a0031459117e3 (diff) | |
QDataStream: clarify QDataStream::operator>>(char *&s) API docs
The wording was slightly ambiguous giving readers the idea that it will
scan for a \0 terminator in the data; however what actually happens is
that readBytes() gets the length of the string from a quint32 in the
stream right before the data, and readBytes() always adds a
null-terminator.
Fixes: QTBUG-3287
Pick-to: 6.6 6.5 6.2 5.15
Change-Id: Ie22500a9c191ffd590a6b57babeb67577c24dddb
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/sql/kernel/qsqldatabase.cpp')
0 files changed, 0 insertions, 0 deletions
