Changes between Initial Version and Version 1 of Ticket #11954, comment 3


Ignore:
Timestamp:
Nov 27, 2020, 1:08:12 PM (3 years ago)
Author:
eriktorbjorn

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11954, comment 3

    initial v1  
    1212In your example, it will read the string "/qtw/myst/vlt1watr" into videoFile.
    1313
    14 Before the str-common.cpp change, _videoFile.size() was 19 because it apparently counts the string terminator. It would therefore skip the next byte of the stream.
     14Before the base-str.cpp change, _videoFile.size() was 19 because it apparently counts the string terminator. It would therefore skip the next byte of the stream.
    1515
    1616After the change, _videoFile.size() is 18 because the terminator isn't included in the count. It won't skip anything, and everything it reads from the stream after that will be just garbage.