From a5792842251c00e521e5826523695e0e8385a8f0 Mon Sep 17 00:00:00 2001 From: Vlad Apostolov Date: Wed, 8 Aug 2007 07:53:19 +0000 Subject: [PATCH] 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 --- dmapi/src/suite1/cmd/print_event.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dmapi/src/suite1/cmd/print_event.c b/dmapi/src/suite1/cmd/print_event.c index 3e01e77f..c926e05f 100644 --- a/dmapi/src/suite1/cmd/print_event.c +++ b/dmapi/src/suite1/cmd/print_event.c @@ -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, ""); } -- 2.25.1