summaryrefslogtreecommitdiffstats
path: root/Python/thread_beos.h
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-11-28 22:07:30 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-11-28 22:07:30 (GMT)
commit75cdad558472781162a83439f3e6edb61d4d40e6 (patch)
treed4c4d78f70a7e37860209ac8a2b9019d24b997cc /Python/thread_beos.h
parent179c48c60e2476643863313ee0e0aa01bf338ad9 (diff)
downloadcpython-75cdad558472781162a83439f3e6edb61d4d40e6.zip
cpython-75cdad558472781162a83439f3e6edb61d4d40e6.tar.gz
cpython-75cdad558472781162a83439f3e6edb61d4d40e6.tar.bz2
More sprintf -> PyOS_snprintf.
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 3f84347..74eab2e 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 ) {