From d34069a3cb882bf4f2a2f6353f69ed1cce4b27af Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 26 Nov 2013 20:36:37 +0100 Subject: compare_to_value: fail out on incorrect size --- apps/compare_to_value.c | 1 + 1 file changed, 1 insertion(+) (limited to 'apps/compare_to_value.c') diff --git a/apps/compare_to_value.c b/apps/compare_to_value.c index b6df9c0..e1082ce 100644 --- a/apps/compare_to_value.c +++ b/apps/compare_to_value.c @@ -47,6 +47,7 @@ int main(int argc, char *argv[]) { num = fread(buf, 4, size, f); if (num != size) { printf("Only %lu of %lu dwords in the file\n", num, size); + exit(1); } fclose(f); -- cgit v1.2.3