More sprintf -> PyOS_snprintf.
diff --git a/Python/thread_beos.h b/Python/thread_beos.h
index 3f84347..74eab2e 100644
--- a/Python/thread_beos.h
+++ b/Python/thread_beos.h
@@ -123,7 +123,8 @@
/* 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 @@
}
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 ) {