Added cppcheck-suppress for strcpy - I know strcpy is safe because I
check the length beforehand.
This commit is contained in:
@@ -43,6 +43,7 @@ void appendErrorMessage(char *fullMessage, size_t capacityFullMessage,
|
||||
// The error message is empty -> Just copy the content of toBeAppended
|
||||
// into fullMessage, if the formers capacity suffices
|
||||
if (lenToBeAppended < capacityFullMessage) {
|
||||
// cppcheck-suppress unsafeStrcpy
|
||||
strcpy(fullMessage, toBeAppended);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user