mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-01-23 23:46:01 +00:00
Avoid strcpy() use strlcpy() instead.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
95840eb3aa
commit
cceb4e2e5f
@ -519,7 +519,7 @@ qb_ipcs_connection_alloc(struct qb_ipcs_service *s)
|
||||
c->request.type = s->type;
|
||||
c->response.type = s->type;
|
||||
c->event.type = s->type;
|
||||
strcpy(c->description, "not set yet");
|
||||
strlcpy(c->description, "not set yet", CONNECTION_DESCRIPTION);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user