mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 20:00:58 +01:00
fixed invalid fread() call
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user