http://defect.opensolaris.org/bz/show_bug.cgi?id=9402
Summary: nwamadm has extra %s in call to snprintf()
Classification: Development
Product: nwam
Version: unspecified
Platform: ANY/Generic
OS/Version: All
Status: NEW
Status Whiteboard: nwam1-build:2009-06-08
Severity: normal
Priority: P3
Component: CLI
AssignedTo: nwam-dev at opensolaris.org
ReportedBy: dkenny at opensolaris.org
QAContact: nwam-dev at opensolaris.org
While perusing the code in nwamadm.c I noticed an extra %s in the call for
snprintf for the creation of the objstr:
case NWAM_EVENT_TYPE_OBJECT_STATE:
(void) snprintf(statestr, sizeof (statestr), "%s, %s",
nwam_state_to_string(event->data.object_state.state),
nwam_aux_state_to_string
(event->data.object_state.aux_state));
state = statestr;
(void) snprintf(objstr, sizeof (objstr), "%s %s %s",
nwam_object_type_to_string
(event->data.object_state.object_type),
event->data.object_state.name);
object = objstr;
break;
Either there should be only two %s entries or there should be an extra param.
--
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.