summaryrefslogtreecommitdiff
path: root/Python/thread_beos.h
diff options
context:
space:
mode:
Diffstat (limited to 'Python/thread_beos.h')
-rw-r--r--Python/thread_beos.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/thread_beos.h b/Python/thread_beos.h
index 3f843474bf..74eab2e912 100644
--- a/Python/thread_beos.h
+++ b/Python/thread_beos.h
@@ -123,7 +123,8 @@ long PyThread_start_new_thread( void (*func)(void *), void *arg )
/* We are so very thread-safe... */
this_thread = atomic_add( &thread_count, 1 );
- sprintf( name, "python thread (%d)", this_thread );
+ PyOS_snprintf(name, sizeof(name),
+ "python thread (%d)", this_thread );
tid = spawn_thread( (thread_func)func, name,
B_NORMAL_PRIORITY, arg );
@@ -222,7 +223,7 @@ PyThread_type_lock PyThread_allocate_lock( void )
}
this_lock = atomic_add( &lock_count, 1 );
- sprintf( name, "python lock (%d)", this_lock );
+ PyOS_snprintf(name, sizeof(name), "python lock (%d)", this_lock);
retval = benaphore_create( name, lock );
if( retval != EOK ) {