mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
coverity: check dm_strncpy return value in dmeventd/_get_parameters
This commit is contained in:
parent
08116a4962
commit
bbe4aca7c4
@ -531,7 +531,8 @@ static int _get_parameters(struct message_data *message_data) {
|
||||
msg->size = strlen(buf) + 1;
|
||||
if (!(msg->data = dm_malloc(msg->size)))
|
||||
goto_out;
|
||||
dm_strncpy(msg->data, buf, msg->size);
|
||||
if (!dm_strncpy(msg->data, buf, msg->size))
|
||||
goto_out;
|
||||
r = 0;
|
||||
out:
|
||||
return r;
|
||||
|
Loading…
Reference in New Issue
Block a user