mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-20 10:16:36 +02:00
small fix and bump version to 0.5.2
This commit is contained in:
@ -331,7 +331,7 @@ int check_file_signature(const char *signature, size_t size, FILE *fp)
|
||||
{
|
||||
char buf[size];
|
||||
|
||||
if (fread(buf, size, 1, fp) == -1)
|
||||
if (fread(buf, size, 1, fp) != 1)
|
||||
return -1;
|
||||
|
||||
int ret = memcmp(signature, buf, size);
|
||||
|
Reference in New Issue
Block a user