From 8313fa75da2b1ee75c5f6bf3ea4ee55b160bdb2d Mon Sep 17 00:00:00 2001 From: smathis Date: Thu, 9 Jul 2026 14:37:18 +0200 Subject: [PATCH] Adjusted path size for loadfile in check inside epics_ca.cxx --- device/epics_ca.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/device/epics_ca.cxx b/device/epics_ca.cxx index 4c1a12a..a36bc0e 100644 --- a/device/epics_ca.cxx +++ b/device/epics_ca.cxx @@ -1995,11 +1995,11 @@ INT epics_ca_init(HNDLE hKey, CA_INFO **pinfo, INT channels) { return FE_ERR_HW; } - if (strlen(info->settings.loadfile) >= NAME_LENGTH) { + if (strlen(info->settings.loadfile) >= 256) { cm_msg(MLOG,"","EPICSGFA/DD/Loadfile Name length is equals or larger than %d! " - "Name will be truncated!",NAME_LENGTH); + "Name will be truncated!",256); cm_msg_flush_buffer(); - info->settings.loadfile[NAME_LENGTH-1] = '\0'; + info->settings.loadfile[255] = '\0'; } info->settings.Sum_NOT_Connected = 0;