diff options
Diffstat (limited to 'cpukit/libtrace/record/record-server.c')
-rw-r--r-- | cpukit/libtrace/record/record-server.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/libtrace/record/record-server.c b/cpukit/libtrace/record/record-server.c index 67495d7f13..991aef2fb4 100644 --- a/cpukit/libtrace/record/record-server.c +++ b/cpukit/libtrace/record/record-server.c @@ -211,7 +211,10 @@ static bool thread_names_visitor( rtems_tcb *tcb, void *arg ) data = 0; for ( j = 0; i < n && j < sizeof( data ); ++j ) { - data |= name[ i ] << ( j * 8 ); + rtems_record_data c; + + c = (unsigned char) name[ i ]; + data |= c << ( j * 8 ); ++i; } |