diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2013-11-26 20:36:37 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2013-11-26 20:36:37 +0100 |
commit | d34069a3cb882bf4f2a2f6353f69ed1cce4b27af (patch) | |
tree | 59ee88e4d389cd505420a51ce66646fa95fad3b2 /apps | |
parent | ba90c7c942f39b83986e4ed899def33ce79e2f1d (diff) | |
download | pcitool-d34069a3cb882bf4f2a2f6353f69ed1cce4b27af.tar.gz pcitool-d34069a3cb882bf4f2a2f6353f69ed1cce4b27af.tar.bz2 pcitool-d34069a3cb882bf4f2a2f6353f69ed1cce4b27af.tar.xz pcitool-d34069a3cb882bf4f2a2f6353f69ed1cce4b27af.zip |
compare_to_value: fail out on incorrect size
Diffstat (limited to 'apps')
-rw-r--r-- | apps/compare_to_value.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |