- fixed some potential bugs introduced when replacing strncpy and
strncat by strlcpy and strlcat
This commit is contained in:
@ -502,7 +502,7 @@ static int LogReader(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
if (!inRange) {
|
||||
if (t < startim) {
|
||||
lastval[0] = '\0';
|
||||
strlcat(lastval, val, sizeof lastval - 1);
|
||||
strncat(lastval, val, sizeof lastval - 1);
|
||||
lastt = t;
|
||||
} else {
|
||||
inRange = 1;
|
||||
|
Reference in New Issue
Block a user