Skip to content

Commit

Permalink
Avoid strcpy() use strlcpy() instead.
Browse files Browse the repository at this point in the history
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
  • Loading branch information
asalkeld committed Aug 29, 2012
1 parent 95840eb commit cceb4e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ipcs.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit cceb4e2

Please sign in to comment.