- 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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user