mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-24 14:03:55 +01:00
pkg/lwext4: Fix off-by-one error
This commit is contained in:
parent
3c3c5c281c
commit
7b4c80d1bf
@ -111,7 +111,7 @@ static int prepare(lwext4_desc_t *fs, const char *mount_point)
|
||||
memset(&fs->bdev, 0, sizeof(fs->bdev));
|
||||
memset(&fs->iface, 0, sizeof(fs->iface));
|
||||
|
||||
strncpy(fs->mp.name, mount_point, CONFIG_EXT4_MAX_MP_NAME);
|
||||
strncpy(fs->mp.name, mount_point, CONFIG_EXT4_MAX_MP_NAME - 1);
|
||||
strcat(fs->mp.name, "/");
|
||||
|
||||
int res = mtd_init(dev);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user