monitor/mon-prmisc.c: Use puts() not fprintf()

CodeSonar flagged this as a case where the user could inject a format
string and cause issues. Since we were not printing anything but a
string, just switching to puts() rather than fprintf(stdout,...) was
sufficient to make this code safer.
This commit is contained in:
Josh Oguin
2014-11-19 14:50:45 -06:00
committed by Joel Sherrill
parent 8b9bc54b5a
commit d4ec0a2d75

View File

@@ -103,7 +103,7 @@ rtems_monitor_dump_name(rtems_id id)
rtems_object_get_name( id, sizeof(name_buffer), name_buffer );
return fprintf( stdout, name_buffer );
return puts( name_buffer );
}
int