mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
pv 964111, rv lachlan - > attrname[DM_ATTR_NAME_SIZE] = '\0'; /* terminate the string */
Merge of master-melb:xfs-cmds:29347a by kenmcd. pv 964111, rv lachlan - terminate attribute name string
This commit is contained in:
@@ -532,6 +532,7 @@ handle_message(
|
||||
}
|
||||
if (msg_ds->ds_attrname.an_chars[0] != '\0') {
|
||||
strncpy(attrname, (char *)msg_ds->ds_attrname.an_chars, sizeof(attrname));
|
||||
attrname[DM_ATTR_NAME_SIZE] = '\0'; /* terminate the string */
|
||||
} else {
|
||||
strcpy(attrname, "<NONE>");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user