We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c1f4d1 commit 6897706Copy full SHA for 6897706
sycl/source/detail/config.cpp
@@ -39,7 +39,7 @@ namespace detail {
39
static void initValue(const char *Key, const char *Value) {
40
#define CONFIG(Name, MaxSize, CompileTimeDef) \
41
if (0 == strncmp(Key, SYCLConfigBase<Name>::MConfigName, MAX_CONFIG_NAME)) { \
42
- strcpy(SYCLConfigBase<Name>::MStorage, Value); \
+ strncpy(SYCLConfigBase<Name>::MStorage, Value, MaxSize); \
43
SYCLConfigBase<Name>::MValueFromFile = SYCLConfigBase<Name>::MStorage; \
44
return; \
45
}
0 commit comments