mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 02:27:36 +08:00
Fix packing of directory entries in the List reply
This commit is contained in:
@@ -242,6 +242,7 @@ MavlinkFTP::_workList(Request *req)
|
||||
|
||||
// copy the name, which we know will fit
|
||||
strcpy((char *)&hdr->data[offset], entry.d_name);
|
||||
offset += strlen(entry.d_name) + 1;
|
||||
printf("FTP: list %s\n", entry.d_name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user