diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-12-07 17:27:07 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-12-07 17:27:07 +0000 |
commit | b07d4453bf56b6c1df4032eaf46c15ef11a6e7d5 (patch) | |
tree | 0a74e673ca3bbf77e758e2531cf3b050f4387554 | |
parent | Regenerate. (diff) | |
download | rtems-b07d4453bf56b6c1df4032eaf46c15ef11a6e7d5.tar.bz2 |
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.
-rw-r--r-- | cpukit/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/score/src/objectsetname.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index efdb855b81..30913d39e2 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -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-11-11 Jennifer Averett <jennifer.averett@OARcorp.com> PR 1471/cpukit diff --git a/cpukit/score/src/objectsetname.c b/cpukit/score/src/objectsetname.c index 3dcfae7706..fdbff2eb36 100644 --- a/cpukit/score/src/objectsetname.c +++ b/cpukit/score/src/objectsetname.c @@ -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 { the_object->name.name_u32 = _Objects_Build_name( |