mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-22 01:53:54 +08:00
Reverted default branch to stable-1.5.
This commit is contained in:
@@ -140,8 +140,7 @@ void CommandFoeWrite::execute(const StringVector &args)
|
||||
|
||||
// write data via foe to the slave
|
||||
data.offset = 0;
|
||||
strncpy(data.file_name, storeFileName.c_str(), sizeof(data.file_name)-1);
|
||||
data.file_name[sizeof(data.file_name)-1] = '\0';
|
||||
strncpy(data.file_name, storeFileName.c_str(), sizeof(data.file_name));
|
||||
|
||||
try {
|
||||
m.writeFoe(&data);
|
||||
|
||||
Reference in New Issue
Block a user