Support Board
Date/Time: Tue, 22 Apr 2025 12:51:28 +0000
Post From: Remote compiling issue
[2025-01-22 00:14:03] |
User327556 - Posts: 2 |
Hi, I have been trying to code an indicator but for some reason this error message keeps popping up when I try to compile it. It seems to say that there is a string length overflow, however im not using any strings in the study. How do I fix this? Kind regards, Server: https://build3.sierrachart.com The remote build is complete. The build failed. In file included from scstructures.h:109, from sierrachart.h:22, from zigzag_period.cpp:1: In constructor 'SCString::SCString(const char*)', inlined from 'void scsf_TradingSystemBasedOnAlertCondition(SCStudyInterfaceRef)' at zigzag_period.cpp:562:54: SCString.h:174:11: warning: 'char* strncpy(char*, const char*, size_t)' specified bound depends on the length of the source argument [-Wstringop-overflow=] 174 | strncpy(m_String, SourceString, StringLength); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SCString.h: In function 'void scsf_TradingSystemBasedOnAlertCondition(SCStudyInterfaceRef)': SCString.h:772:36: note: length computed here 772 | const size_t StringLength = strlen(String); |