mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-25 14:56:57 +08:00
GCS_MAVLINK: fixed macos snprintf error
This commit is contained in:
1 parent
68a33e996d
commit
02ca6b67a2
1 file changed
+2
-2
@@ -585,9 +585,9 @@ int GCS_MAVLINK::gen_dir_entry(char *dest, size_t space, const char *path, const
|
||||
if (AP::FS().stat(full_path, &st)) {
|
||||
return -1;
|
||||
}
|
||||
return hal.util->snprintf(dest, space, "F%s\t%u\0", entry->d_name, (unsigned)st.st_size);
|
||||
return hal.util->snprintf(dest, space, "F%s\t%u%c", entry->d_name, (unsigned)st.st_size, (char)0);
|
||||
} else {
|
||||
return hal.util->snprintf(dest, space, "D%s\0", entry->d_name);
|
||||
return hal.util->snprintf(dest, space, "D%s%c", entry->d_name, (char)0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user