From 2576f3b44258848ccb2fc345f53eec22ec8fc0d5 Mon Sep 17 00:00:00 2001 From: Martin Petersson Date: Fri, 18 Feb 2011 10:49:40 +0100 Subject: tst_networkSelfTest: fix smbServer() test fread() used in the wrong way so test failed on Windows. Reviewed-by: Markus Goetz --- tests/auto/networkselftest/tst_networkselftest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v0.12