Fix packing of directory entries in the List reply

This commit is contained in:
px4dev
2014-06-08 10:13:55 -07:00
parent a103fef948
commit 0ef6605498
+1
View File
@@ -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);
}