Mercurial > cpython-lru_cache-weakref
diff Python/thread_beos.h @ 21094:c2150313d9d1 legacy-trunk
More sprintf -> PyOS_snprintf.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Wed, 28 Nov 2001 22:07:30 +0000 |
| parents | ebfd87e87884 |
| children | 8b116a8449bd |
line wrap: on
line diff
--- a/Python/thread_beos.h Wed Nov 28 21:49:51 2001 +0000 +++ b/Python/thread_beos.h Wed Nov 28 22:07:30 2001 +0000 @@ -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 ) {
