1
0
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:
Jfreegman
2014-09-29 13:56:17 -04:00
parent 64d782569a
commit 97a8ecd115
2 changed files with 2 additions and 2 deletions

View File

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