Changeset 338 for pjproject/trunk/pjlib/src/pj/os_core_unix.c
- Timestamp:
- Mar 20, 2006 12:39:24 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/os_core_unix.c
r304 r338 25 25 #include <pj/string.h> 26 26 #include <pj/guid.h> 27 #include <pj/compat/sprintf.h>28 27 #include <pj/except.h> 29 28 #include <pj/errno.h> … … 205 204 206 205 if(cstr_thread_name && pj_strlen(&thread_name) < sizeof(thread->obj_name)-1) 207 pj_ sprintf(thread->obj_name, cstr_thread_name, thread->thread);206 pj_ansi_sprintf(thread->obj_name, cstr_thread_name, thread->thread); 208 207 else 209 pj_ sprintf(thread->obj_name, "thr%p", (void*)thread->thread);208 pj_ansi_sprintf(thread->obj_name, "thr%p", (void*)thread->thread); 210 209 211 210 rc = pj_thread_local_set(thread_tls_id, thread); … … 315 314 316 315 if (strchr(thread_name, '%')) { 317 pj_ snprintf(rec->obj_name, PJ_MAX_OBJ_NAME, thread_name, rec);316 pj_ansi_snprintf(rec->obj_name, PJ_MAX_OBJ_NAME, thread_name, rec); 318 317 } else { 319 318 strncpy(rec->obj_name, thread_name, PJ_MAX_OBJ_NAME); … … 805 804 } 806 805 if (strchr(name, '%')) { 807 pj_ snprintf(mutex->obj_name, PJ_MAX_OBJ_NAME, name, mutex);806 pj_ansi_snprintf(mutex->obj_name, PJ_MAX_OBJ_NAME, name, mutex); 808 807 } else { 809 808 strncpy(mutex->obj_name, name, PJ_MAX_OBJ_NAME); … … 1126 1125 } 1127 1126 if (strchr(name, '%')) { 1128 pj_ snprintf(sem->obj_name, PJ_MAX_OBJ_NAME, name, sem);1127 pj_ansi_snprintf(sem->obj_name, PJ_MAX_OBJ_NAME, name, sem); 1129 1128 } else { 1130 1129 strncpy(sem->obj_name, name, PJ_MAX_OBJ_NAME);
Note: See TracChangeset
for help on using the changeset viewer.