Fix off by one error in wxFTP::GetFileSize().
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 22 Apr 2010 12:08:16 +0000 (12:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 22 Apr 2010 12:08:16 +0000 (12:08 +0000)
commita96160b58fb552c445de9569c0a891a8a15ab239
treee32e73249d37887025c2d9a6b6be485f3f0da247
parente3f5caa223f582b3a4bf375e200de7fb216b568f
Fix off by one error in wxFTP::GetFileSize().

We incremented the index once more even after finding the line we were looking
for in the array which meant that we accessed a wrong array element in any
case and could even attempt to access an out of bound one if the file was
found in the last line.

Closes #11964.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/ftp.cpp