1
0
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:
Zdenek Kabelac 2021-03-18 23:08:08 +01:00
parent 79d8d06217
commit d37b19aaaa

View File

@ -230,7 +230,7 @@ static void _get_sysfs_dir(struct cmd_context *cmd, char *buf, size_t buf_size)
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)