From c5903ad7b4286aea16a24ae8b75d84f8bc1cdd33 Mon Sep 17 00:00:00 2001 From: "git@daemon.de" Date: Mon, 10 Mar 2014 17:04:59 +0100 Subject: [PATCH] fixed invalid fread() call --- tests/cpptest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/cpptest.cpp b/tests/cpptest.cpp index 0a62b6c..16d5ae4 100644 --- a/tests/cpptest.cpp +++ b/tests/cpptest.cpp @@ -60,7 +60,8 @@ void test0() { DECRYPTED = _openrd("testcppdecrypted"); char *got = (char *)ucmalloc(10); - fread(got, 1, 6, DECRYPTED); + size_t h; + h = fread(got, 1, 6, DECRYPTED); if(strncmp(got, "HALLO", 5) != 0) { throw pcp::exception(); }