summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2017-11-05 08:54:41 -0700
committerJens Axboe <axboe@kernel.dk>2017-11-05 08:54:41 -0700
commit07d76e12aa46fa0bad4b736d581ec5aca62264f7 (patch)
treeab4562e7ddde20d740abcdc24c819706a17c1b48
parentdae2f95b38eeaaa3c4c5b350dd759f482802c2c9 (diff)
downloadblktrace-07d76e12aa46fa0bad4b736d581ec5aca62264f7.tar.gz
blktrace-07d76e12aa46fa0bad4b736d581ec5aca62264f7.tar.bz2
btt/devs: silence warning on sprintf overflow
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--btt/devs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btt/devs.c b/btt/devs.c
index ccaae87..12ce2ca 100644
--- a/btt/devs.c
+++ b/btt/devs.c
@@ -108,7 +108,7 @@ void dip_exit(void)
static inline FILE *open_pit(struct d_info *dip)
{
FILE *fp;
- char str[256];
+ char str[272];
sprintf(str, "%s_pit.dat", dip->dip_name);
if ((fp = my_fopen(str, "w")) == NULL)