[apps/code] Test: strcpy isn't available on the device

This commit is contained in:
Émilie Feral
2020-06-03 18:05:42 +02:00
parent fc238f639a
commit 2ebad3062c

View File

@@ -18,7 +18,7 @@ void assert_variables_are(const char * script, const char * nameToComplete, cons
.buffer = &dataBuffer,
.size = dataBufferSize
};
strcpy(dataBuffer, script);
strlcpy(dataBuffer, script, dataBufferSize);
constexpr int scriptIndex = 0;
store.scriptAtIndex(scriptIndex).setValue(data);