diff options
author | Martin Petersson <martin.petersson@nokia.com> | 2011-02-18 09:49:40 (GMT) |
---|---|---|
committer | Martin Petersson <martin.petersson@nokia.com> | 2011-02-18 09:49:40 (GMT) |
commit | 2576f3b44258848ccb2fc345f53eec22ec8fc0d5 (patch) | |
tree | ca3d9c3c0ebaebf420c49a062be5e72449c39abc /tests/auto/networkselftest | |
parent | 4df61b4bad57a08a30b8898eb73c720bc9c328a8 (diff) | |
download | Qt-2576f3b44258848ccb2fc345f53eec22ec8fc0d5.zip Qt-2576f3b44258848ccb2fc345f53eec22ec8fc0d5.tar.gz Qt-2576f3b44258848ccb2fc345f53eec22ec8fc0d5.tar.bz2 |
tst_networkSelfTest: fix smbServer() test
fread() used in the wrong way so test failed on Windows.
Reviewed-by: Markus Goetz
Diffstat (limited to 'tests/auto/networkselftest')
-rw-r--r-- | tests/auto/networkselftest/tst_networkselftest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/networkselftest/tst_networkselftest.cpp b/tests/auto/networkselftest/tst_networkselftest.cpp index cfcafc0..64de64a 100644 --- a/tests/auto/networkselftest/tst_networkselftest.cpp +++ b/tests/auto/networkselftest/tst_networkselftest.cpp @@ -967,7 +967,7 @@ void tst_NetworkSelfTest::smbServer() QVERIFY2(f, qt_error_string().toLocal8Bit()); char buf[128]; - size_t ret = fread(buf, sizeof buf, 1, f); + size_t ret = fread(buf, 1, sizeof buf, f); fclose(f); QCOMPARE(ret, strlen(contents)); |