From a9dba82661f6a88eeaa3fd1aab0948bf1919158c Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 8 Jan 2021 16:16:17 +0100 Subject: [PATCH] bugfix --- devicehandlers/DeviceHandlerBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devicehandlers/DeviceHandlerBase.cpp b/devicehandlers/DeviceHandlerBase.cpp index 7ca9922a..1a106844 100644 --- a/devicehandlers/DeviceHandlerBase.cpp +++ b/devicehandlers/DeviceHandlerBase.cpp @@ -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",