From 24f70ae2204129e700663b81b01f14bac54965b9 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Sun, 27 Jul 2025 07:51:17 +0100 Subject: [PATCH] - MmsServer: replaced strcat with StringUtils_appendString (LIB61850-518) --- src/mms/iso_mms/server/mms_server_common.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mms/iso_mms/server/mms_server_common.c b/src/mms/iso_mms/server/mms_server_common.c index f847847a..3278a3a6 100644 --- a/src/mms/iso_mms/server/mms_server_common.c +++ b/src/mms/iso_mms/server/mms_server_common.c @@ -1,7 +1,7 @@ /* * mms_server_common.c * - * Copyright 2013-2024 Michael Zillgith + * Copyright 2013-2025 Michael Zillgith * * This file is part of libIEC61850. * @@ -329,8 +329,8 @@ mmsServer_getComponentOfArrayElement(AlternateAccess_t* alternateAccess, MmsVari { if (componentId) { - strcat(componentId, structSpec->typeSpec.structure.elements[i]->name); - strcat(componentId, "$"); + StringUtils_appendString(componentId, 65, structSpec->typeSpec.structure.elements[i]->name); + StringUtils_appendString(componentId, 65, "$"); } retValue = @@ -343,7 +343,7 @@ mmsServer_getComponentOfArrayElement(AlternateAccess_t* alternateAccess, MmsVari { if (componentId) { - strcat(componentId, structSpec->typeSpec.structure.elements[i]->name); + StringUtils_appendString(componentId, 65, structSpec->typeSpec.structure.elements[i]->name); } retValue = value;