- 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

@@ -275,7 +275,7 @@ static void GetErr(void *self, int *iCode, char *buffer, int iBufLen)
EL734_ErrInfo(&pErr, &iMSR, &iOMSR, &iSS);
if (iMSR != 0) {
EL734Error2Text(pBueffel, iMSR);
strncpy(buffer, pBueffel, (iBufLen - 1));
strlcpy(buffer, pBueffel, (iBufLen - 1));
*iCode = iMSR;
return;
} else { /* check status flag for addional errors */
@@ -284,7 +284,7 @@ static void GetErr(void *self, int *iCode, char *buffer, int iBufLen)
if (iRet != 1) { /* failure on this one, this has to be handled */
EL734_ErrInfo(&pErr, &iMSR, &iOMSR, &iSS);
EL734Error2Text(pBueffel, iMSR);
strncpy(buffer, pBueffel, (iBufLen - 1));
strlcpy(buffer, pBueffel, (iBufLen - 1));
*iCode = iMSR;
return;