mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00: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