Avoid strcpy() use strlcpy() instead.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
Angus Salkeld 2012-08-29 22:31:57 +10:00
parent 95840eb3aa
commit cceb4e2e5f

View File

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