btt/devs: silence warning on sprintf overflow
authorJens Axboe <axboe@kernel.dk>
Sun, 5 Nov 2017 15:54:41 +0000 (08:54 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 5 Nov 2017 15:54:41 +0000 (08:54 -0700)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
btt/devs.c

index ccaae87e8231b3af2db82b8fc07b511f47b769d1..12ce2cabd929703fb380bc8a977f697818070716 100644 (file)
@@ -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)