diff options
Diffstat (limited to 'cpukit/score/src')
-rw-r--r-- | cpukit/score/src/Makefile.am | 3 | ||||
-rw-r--r-- | cpukit/score/src/objectcopynamestring.c | 9 |
2 files changed, 7 insertions, 5 deletions
diff --git a/cpukit/score/src/Makefile.am b/cpukit/score/src/Makefile.am index f5914fdb37..c348a606f1 100644 --- a/cpukit/score/src/Makefile.am +++ b/cpukit/score/src/Makefile.am @@ -71,9 +71,8 @@ OBJS = $(C_O_FILES) # AM_CPPFLAGS += -D__RTEMS_INSIDE__ -AM_CFLAGS += $(CFLAGS_OS_V) -all: ${ARCH} ${OBJS} +all-local: ${ARCH} ${OBJS} EXTRA_DIST = $(STD_C_FILES) $(MP_C_FILES) Unlimited.txt diff --git a/cpukit/score/src/objectcopynamestring.c b/cpukit/score/src/objectcopynamestring.c index cd0779d546..eb196f3d25 100644 --- a/cpukit/score/src/objectcopynamestring.c +++ b/cpukit/score/src/objectcopynamestring.c @@ -39,7 +39,10 @@ void _Objects_Copy_name_string( unsigned8 *source_p = (unsigned8 *) source; unsigned8 *destination_p = (unsigned8 *) destination; - do { - *destination_p++ = *source_p; - } while ( *source_p++ ); + *destination_p = '\0'; + if ( source_p ) { + do { + *destination_p++ = *source_p; + } while ( *source_p++ ); + } } |