- 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:
@ -190,7 +190,7 @@ int DefineAlias(pSConnection pCon, SicsInterp * pSics, void *pData,
|
||||
|
||||
pErr = CreateAlias(&pSics->AList, argv[1], argv[2]);
|
||||
if (pErr != NULL) {
|
||||
sprintf(pBueffel, "ERROR: %s", pErr);
|
||||
snprintf(pBueffel,255, "ERROR: %s", pErr);
|
||||
SCWrite(pCon, pBueffel, eError);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user