- 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:
@ -132,11 +132,11 @@ static void PIError(void *pData, int *iCode, char *pError, int iErrLen)
|
||||
*iCode = self->iLastError;
|
||||
|
||||
if (*iCode == PITMO) {
|
||||
strncpy(pError, "Timeout at serial line", iErrLen);
|
||||
strlcpy(pError, "Timeout at serial line", iErrLen);
|
||||
return;
|
||||
}
|
||||
if (*iCode == PICOMERR) {
|
||||
strncpy(pError, "E-255 Command Error", iErrLen);
|
||||
strlcpy(pError, "E-255 Command Error", iErrLen);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user