- After a bug at TRICS I replaced all occurrences of strcpy, strcat, sprintf
by length limited versions wherever appropriate. SKIPPED: psi/el755driv.c psi/faverage.c psi/frame.c psi/lmd200.c psi/polterwrite.c psi/psi.c psi/sanswave.c psi/sinqhmdriv.c psi/termprot.c
This commit is contained in:
6
exeman.c
6
exeman.c
@ -438,7 +438,7 @@ static int runHdbBuffer(pExeMan self, SConnection * pCon,
|
||||
* prepare context
|
||||
*/
|
||||
conCon = SCCopyConnection(pCon);
|
||||
strcpy(conCon->deviceID, pBueffel);
|
||||
strncpy(conCon->deviceID, pBueffel,255);
|
||||
|
||||
/*
|
||||
* load commands into buffer
|
||||
@ -749,8 +749,8 @@ static int uploadForceSave(pExeMan self, SConnection * pCon,
|
||||
pPtr = self->batchPath;
|
||||
pPtr = stptok(pPtr, pPath, 131, ":");
|
||||
if (strlen(pPath) + 1 + strlen(argv[2]) <= 256) {
|
||||
strcat(pPath, "/");
|
||||
strcat(pPath, argv[2]);
|
||||
strncat(pPath, "/",255);
|
||||
strncat(pPath, argv[2],255);
|
||||
} else {
|
||||
strncpy(pPath, argv[2], 255);
|
||||
}
|
||||
|
Reference in New Issue
Block a user