CID 609036: Avoid to exceed length of string
This commit is contained in:
@@ -215,7 +215,7 @@ void
|
|||||||
openlog_team(const char *ident, int options, int facility)
|
openlog_team(const char *ident, int options, int facility)
|
||||||
{
|
{
|
||||||
if (ident != NULL)
|
if (ident != NULL)
|
||||||
strcpy(sTeamContext.ident, ident);
|
strlcpy(sTeamContext.ident, ident, sizeof(sTeamContext.ident));
|
||||||
|
|
||||||
sTeamContext.options = options;
|
sTeamContext.options = options;
|
||||||
sTeamContext.facility = SYSLOG_FACILITY(facility);
|
sTeamContext.facility = SYSLOG_FACILITY(facility);
|
||||||
|
|||||||
Reference in New Issue
Block a user