mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
gcc: ensure buffer ends with 0
This commit is contained in:
parent
79d8d06217
commit
d37b19aaaa
@ -230,7 +230,7 @@ static void _get_sysfs_dir(struct cmd_context *cmd, char *buf, size_t buf_size)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
strncpy(buf, sys_mnt, buf_size);
|
(void) dm_strncpy(buf, sys_mnt, buf_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint32_t _parse_debug_fields(struct cmd_context *cmd, int cfg, const char *cfgname)
|
static uint32_t _parse_debug_fields(struct cmd_context *cmd, int cfg, const char *cfgname)
|
||||||
|
Loading…
Reference in New Issue
Block a user