diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2022-01-20 15:24:09 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2022-01-26 15:09:58 +0100 |
commit | cf68bf7b6c5668dcaf16310e84636a79164bd8ee (patch) | |
tree | 0c8606fc3b574ee5e8faf1da9051c1d72c262642 | |
parent | 7f1f7ad694201533c04ddfbe9ba047f832b38750 (diff) | |
download | lvm2-cf68bf7b6c5668dcaf16310e84636a79164bd8ee.tar.gz |
gcc: snprintf may need here upto 18 bytes
Although hypothetical case....
-rw-r--r-- | daemons/lvmlockd/lvmlockd-core.c | 2 |
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; |