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