fixed invalid fread() call

This commit is contained in:
git@daemon.de
2014-03-10 17:04:59 +01:00
parent 79e25bc05e
commit c5903ad7b4

View File

@@ -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();
}