This commit is contained in:
Robin Müller 2021-01-08 16:16:17 +01:00
parent c0fd981360
commit a9dba82661

View File

@ -1322,8 +1322,8 @@ void DeviceHandlerBase::buildInternalCommand(void) {
if (iter == deviceCommandMap.end()) {
result = COMMAND_NOT_SUPPORTED;
} else if (iter->second.isExecuting) {
char* output = nullptr;
sprintf(output, "Command %lu is executing", deviceCommandId);
char output[36];
sprintf(output, "Command 0x%08x is executing", deviceCommandId);
// so we can track misconfigurations
printWarningOrError(fsfw::OutputTypes::OUT_WARNING,
"buildInternalCommand",