projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dae2f95
)
btt/devs: silence warning on sprintf overflow
author
Jens Axboe
<axboe@kernel.dk>
Sun, 5 Nov 2017 15:54:41 +0000
(08:54 -0700)
committer
Jens 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
patch
|
blob
|
blame
|
history
diff --git
a/btt/devs.c
b/btt/devs.c
index ccaae87e8231b3af2db82b8fc07b511f47b769d1..12ce2cabd929703fb380bc8a977f697818070716 100644
(file)
--- 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[2
56
];
+ char str[2
72
];
sprintf(str, "%s_pit.dat", dip->dip_name);
if ((fp = my_fopen(str, "w")) == NULL)