1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 16:13:02 +01: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
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# Version
TOXIC_VERSION = 0.5.1
TOXIC_VERSION = 0.5.2
REV = $(shell git rev-list HEAD --count)
VERSION = $(TOXIC_VERSION)_r$(REV)

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