mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 14:48:28 -04:00
AP_Fileystem: fixed gcc9 warning
This commit is contained in:
parent
dc0084a2b2
commit
fabbbea0b4
@ -751,7 +751,7 @@ struct dirent *AP_Filesystem_FATFS::readdir(void *dirp_void)
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
len = strlen(fno.fname);
|
len = strlen(fno.fname);
|
||||||
strncpy(d->de.d_name,fno.fname,len);
|
strncpy_noterm(d->de.d_name,fno.fname,len);
|
||||||
d->de.d_name[len] = 0;
|
d->de.d_name[len] = 0;
|
||||||
if (fno.fattrib & AM_DIR) {
|
if (fno.fattrib & AM_DIR) {
|
||||||
d->de.d_type = DT_DIR;
|
d->de.d_type = DT_DIR;
|
||||||
|
Loading…
Reference in New Issue
Block a user