mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
fixed invalid fread() call
This commit is contained in:
@@ -60,7 +60,8 @@ void test0() {
|
|||||||
|
|
||||||
DECRYPTED = _openrd("testcppdecrypted");
|
DECRYPTED = _openrd("testcppdecrypted");
|
||||||
char *got = (char *)ucmalloc(10);
|
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) {
|
if(strncmp(got, "HALLO", 5) != 0) {
|
||||||
throw pcp::exception();
|
throw pcp::exception();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user