mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
vfs: fix gcc-12 compile errors
This commit is contained in:
parent
49af663dfb
commit
75642ca07a
@ -326,7 +326,7 @@ static DIR* vfs_semihost_opendir(void* ctx, const char *restrict path)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
strncpy(semihost_dirp->path, path, MIN(strlen(path), sizeof(semihost_dirp->path) - 1));
|
||||
strncpy(semihost_dirp->path, path, sizeof(semihost_dirp->path) - 1);
|
||||
ESP_LOGV(TAG, "%s: '%s'", __func__, path);
|
||||
int ret_fd = semihosting_opendir(path, (int)&semihost_dirp->id);
|
||||
if (ret_fd < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user