possible Apple CLang fixes

This commit is contained in:
Robin Müller 2023-07-04 16:51:29 +02:00
parent 7f2411358d
commit 7e1fb04f8a
Signed by: muellerr
GPG Key ID: 407F9B00F858F270
2 changed files with 4 additions and 1 deletions

View File

@ -388,7 +388,9 @@ ReturnValue_t cfdp::DestHandler::handleTransferCompletion() {
}
ReturnValue_t cfdp::DestHandler::tryBuildingAbsoluteDestName(size_t destNameSize) {
char baseNameBuf[tp.destName.size()]{};
// Maximum allowed path size is 255 characters, so this should be enough to hold the full
// base name in any case.
char baseNameBuf[524]{};
FilesystemParams fparamsSrc(tp.sourceName.data());
size_t baseNameLen = 0;
ReturnValue_t result =

View File

@ -6,6 +6,7 @@
#include <optional>
#include <utility>
#include <array>
#include "RemoteConfigTableIF.h"
#include "UserBase.h"