diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2017-03-30 00:17:37 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2017-03-30 00:38:41 +0200 |
commit | dfdd6ccf3be73a2b22743ea1df31cd3d7e3c9095 (patch) | |
tree | c8462eb0a2f7fec67dca15c76a0a2923eb47a49e /daemons/cmirrord | |
parent | 4b3d71212fb07c945acebb074820a63e970504e5 (diff) | |
download | lvm2-dfdd6ccf3be73a2b22743ea1df31cd3d7e3c9095.tar.gz |
vgrename: use long enough buffer for path
Use PATH_MAX when creating buffers for rename.
Diffstat (limited to 'daemons/cmirrord')
-rw-r--r-- | daemons/cmirrord/functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/cmirrord/functions.c b/daemons/cmirrord/functions.c index 5e50b8a58..03f8626de 100644 --- a/daemons/cmirrord/functions.c +++ b/daemons/cmirrord/functions.c @@ -377,7 +377,7 @@ static int _clog_ctr(char *uuid, uint64_t luid, uint32_t block_on_error = 0; int disk_log; - char disk_path[128]; + char disk_path[PATH_MAX]; int unlink_path = 0; long page_size; int pages; |