summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/objectsetname.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-12-07 17:27:46 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-12-07 17:27:46 +0000
commit2eb5941982256069871fb427ab1ab75c5a7b038d (patch)
tree581d4bfe95039bbe318edd6a1c90282c6491f479 /cpukit/score/src/objectsetname.c
parentRegenerate. (diff)
downloadrtems-2eb5941982256069871fb427ab1ab75c5a7b038d.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.
Diffstat (limited to '')
-rw-r--r--cpukit/score/src/objectsetname.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/src/objectsetname.c b/cpukit/score/src/objectsetname.c
index dfc44f18ba..3e81811a99 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
#endif