# HG changeset patch # User jld # Date 1360079603 0 # Node ID c568d113df012a792b18dfa9cae57f2ed2ce085f # Parent 376086cd077880b1155e695f1b3b21ff763f47f4 * src/pthread.cxx (pthread_create): Include terminating NUL char when initializing thread name from template. [ Bugzilla 1001743 ] diff --git a/packages/compat/posix/current/ChangeLog b/packages/compat/posix/current/ChangeLog --- a/packages/compat/posix/current/ChangeLog +++ b/packages/compat/posix/current/ChangeLog @@ -1,3 +1,8 @@ +2013-02-03 John Dallaway + + * src/pthread.cxx (pthread_create): Include terminating NUL char + when initializing thread name from template. [ Bugzilla 1001743 ] + 2012-03-08 Sergei Gavrikov * src/mqueue.cxx: Fix compiler warnings about variables that are set @@ -1122,7 +1127,7 @@ 2000-03-24 Nick Garnett id; - for( int i = 0; name_template[i]; i++ ) name[i] = name_template[i]; + for( int i = 0; ( name[i] = name_template[i] ); i++ ); // dump the id, in hex into the name. for( int i = 15; i >= 8; i-- )