summaryrefslogtreecommitdiff
path: root/blkparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'blkparse.c')
-rw-r--r--blkparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blkparse.c b/blkparse.c
index b0b88c3..7be73aa 100644
--- a/blkparse.c
+++ b/blkparse.c
@@ -2839,7 +2839,7 @@ int main(int argc, char *argv[])
ofp = fdopen(STDOUT_FILENO, "w");
mode = _IOLBF;
} else {
- char ofname[128];
+ char ofname[PATH_MAX];
snprintf(ofname, sizeof(ofname) - 1, "%s", output_name);
ofp = fopen(ofname, "w");