- Changed strncpy to strlcpy, strncat to strlcat
- Added strlcpy and strlcat to SICS - Added a driver for the POLDI power supplies
This commit is contained in:
@ -109,7 +109,7 @@ static int SWLimits(void *pData, float fVal, char *error, int iErrLen)
|
||||
/* get tilt */
|
||||
iRet = SWGetTilt(self->pSelector, &fTilt);
|
||||
if (!iRet) {
|
||||
strncpy(error, "Failed to obtain tilt angle", iErrLen);
|
||||
strlcpy(error, "Failed to obtain tilt angle", iErrLen);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user