summaryrefslogtreecommitdiff
path: root/daemons/lvmlockd
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2022-01-20 15:24:09 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2022-01-26 15:09:58 +0100
commitcf68bf7b6c5668dcaf16310e84636a79164bd8ee (patch)
tree0c8606fc3b574ee5e8faf1da9051c1d72c262642 /daemons/lvmlockd
parent7f1f7ad694201533c04ddfbe9ba047f832b38750 (diff)
downloadlvm2-cf68bf7b6c5668dcaf16310e84636a79164bd8ee.tar.gz
gcc: snprintf may need here upto 18 bytes
Although hypothetical case....
Diffstat (limited to 'daemons/lvmlockd')
-rw-r--r--daemons/lvmlockd/lvmlockd-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/lvmlockd/lvmlockd-core.c b/daemons/lvmlockd/lvmlockd-core.c
index 175f59331..6d0d4d98c 100644
--- a/daemons/lvmlockd/lvmlockd-core.c
+++ b/daemons/lvmlockd/lvmlockd-core.c
@@ -4777,7 +4777,7 @@ static void client_recv_action(struct client *cl)
const char *path;
const char *str;
struct pvs pvs;
- char buf[17]; /* "path[%d]\0", %d outputs signed integer so max to 10 bytes */
+ char buf[18]; /* "path[%d]\0", %d outputs signed integer so max to 10 bytes */
int64_t val;
uint32_t opts = 0;
int result = 0;