From 97a8ecd115aef29b7fda35ebd32642b54795bd50 Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Mon, 29 Sep 2014 13:56:17 -0400 Subject: [PATCH] small fix and bump version to 0.5.2 --- cfg/global_vars.mk | 2 +- src/misc_tools.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cfg/global_vars.mk b/cfg/global_vars.mk index aa5eeb2..ebef4ed 100644 --- a/cfg/global_vars.mk +++ b/cfg/global_vars.mk @@ -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) diff --git a/src/misc_tools.c b/src/misc_tools.c index 1afcec7..d88c53d 100644 --- a/src/misc_tools.c +++ b/src/misc_tools.c @@ -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);