Browse Source

todo:Added todo for using strcat

sbg
David Sidrane 9 years ago
parent
commit
bc89f6faef
  1. 1
      src/modules/uavcan/uavcan_servers.cpp

1
src/modules/uavcan/uavcan_servers.cpp

@ -907,6 +907,7 @@ void UavcanServers::unpackFwFromROMFS(const char* sd_path, const char* romfs_pat @@ -907,6 +907,7 @@ void UavcanServers::unpackFwFromROMFS(const char* sd_path, const char* romfs_pat
In each version directory, we remove any files with a name starting with "romfs_"
in the corresponding directory on the SD card that don't match the bundled firmware
filename; if the directory is empty after that process, we copy the bundled firmware.
todo:This code would benefit from the use of strcat.
*/
const size_t maxlen = UAVCAN_MAX_PATH_LENGTH;
const size_t sd_path_len = strlen(sd_path);

Loading…
Cancel
Save