2009-12-07 Cindy Cicalese <cicalese@mitre.org>

PR 1477/cpukit
	* score/src/objectsetname.c: Ensure destination is NULL terminated.
	String copy was not getting the NULL.
This commit is contained in:
Joel Sherrill
2009-12-07 17:27:46 +00:00
parent 4c83377128
commit 2eb5941982
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2009-12-07 Cindy Cicalese <cicalese@mitre.org>
PR 1477/cpukit
* score/src/objectsetname.c: Ensure destination is NULL terminated.
String copy was not getting the NULL.
2009-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/sys/uio.h: Include <sys/types.h>.

View File

@@ -1,5 +1,5 @@
/*
* COPYRIGHT (c) 1989-2008.
* COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -53,6 +53,7 @@ bool _Objects_Set_name(
}
strncpy( d, name, length );
d[length] = '\0';
the_object->name.name_p = d;
} else
#endif