summaryrefslogtreecommitdiff
path: root/verify_blkparse.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2005-10-09 11:21:56 +0200
committerJens Axboe <axboe@suse.de>2005-10-09 11:21:56 +0200
commit58261c756836677184f2588941293d7e3fda0ad9 (patch)
treefa081705403916d82f7e4ef48fd72e81ff23f92f /verify_blkparse.c
parentd372b4d9d6de13dc1daaa488a4e4459c59811d68 (diff)
downloadblktrace-58261c756836677184f2588941293d7e3fda0ad9.tar.gz
blktrace-58261c756836677184f2588941293d7e3fda0ad9.tar.bz2
[PATCH] verify_blkparse: check for correct number of arguments
Diffstat (limited to 'verify_blkparse.c')
-rw-r--r--verify_blkparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/verify_blkparse.c b/verify_blkparse.c
index d8b854d..01e0674 100644
--- a/verify_blkparse.c
+++ b/verify_blkparse.c
@@ -24,7 +24,7 @@ int main(int argc, char *argv[])
last_time = 0;
last_seq = alias = nr = 0;
while ((p = fgets(line, sizeof(line), f)) != NULL) {
- if (sscanf(p, "%3d,%3d %2d %8d %lf", &major, &minor, &cpu, &seq, &this_time) == -1)
+ if (sscanf(p, "%3d,%3d %2d %8d %lf", &major, &minor, &cpu, &seq, &this_time) != 5)
break;
if (this_time < last_time) {