- 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:
@ -155,7 +155,7 @@ static long SWSetValue(void *pData, SConnection * pCon, float fVal)
|
||||
sprintf(pCommand, "%s %d", self->switchFunc, self->myNumber);
|
||||
pTcl = (Tcl_Interp *) pServ->pSics->pTcl;
|
||||
status = Tcl_Eval(pTcl, pCommand);
|
||||
strncpy(pError, pTcl->result, 131);
|
||||
strlcpy(pError, pTcl->result, 131);
|
||||
if (status != TCL_OK || strstr(pError, "OK") == NULL) {
|
||||
sprintf(pCommand, "ERROR: %s while switching motor", pError);
|
||||
SCWrite(pCon, pCommand, eError);
|
||||
|
Reference in New Issue
Block a user