1
0
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:
Peter Rajnoha 2014-02-20 15:06:13 +01:00
parent 08116a4962
commit bbe4aca7c4

View File

@ -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;