mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-16 04:13:02 +01:00
small fix and bump version to 0.5.2
This commit is contained in:
parent
64d782569a
commit
97a8ecd115
@ -1,5 +1,5 @@
|
|||||||
# Version
|
# Version
|
||||||
TOXIC_VERSION = 0.5.1
|
TOXIC_VERSION = 0.5.2
|
||||||
REV = $(shell git rev-list HEAD --count)
|
REV = $(shell git rev-list HEAD --count)
|
||||||
VERSION = $(TOXIC_VERSION)_r$(REV)
|
VERSION = $(TOXIC_VERSION)_r$(REV)
|
||||||
|
|
||||||
|
@ -331,7 +331,7 @@ int check_file_signature(const char *signature, size_t size, FILE *fp)
|
|||||||
{
|
{
|
||||||
char buf[size];
|
char buf[size];
|
||||||
|
|
||||||
if (fread(buf, size, 1, fp) == -1)
|
if (fread(buf, size, 1, fp) != 1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
int ret = memcmp(signature, buf, size);
|
int ret = memcmp(signature, buf, size);
|
||||||
|
Loading…
Reference in New Issue
Block a user