- 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:
koennecke
2010-04-13 15:08:40 +00:00
parent 9e4eabeed1
commit dec6b04fa6
49 changed files with 679 additions and 653 deletions

View File

@ -138,11 +138,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, "C-804 Command Error", iErrLen);
strlcpy(pError, "C-804 Command Error", iErrLen);
return;
}