- 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

4
ecb.c
View File

@@ -252,10 +252,10 @@ void ecbErrorDescription(pECB self, char *buffer, int maxBuffer)
switch (self->lastError) {
case ECBILLEGALFUNC:
strncpy(buffer, "Illegal ECB function called", maxBuffer);
strlcpy(buffer, "Illegal ECB function called", maxBuffer);
return;
case ECBOVERFLOW:
strncpy(buffer,
strlcpy(buffer,
"You tried to copy more then 64K onto the poor ECB, REFUSED!",
maxBuffer);
return;