Changeset 315 for pjproject/trunk/pjlib/src/pj/os_core_win32.c
- Timestamp:
- Mar 10, 2006 12:57:12 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/os_core_win32.c
r304 r315 24 24 #include <pj/rand.h> 25 25 #include <pj/assert.h> 26 #include <pj/compat/vsprintf.h>27 #include <pj/compat/sprintf.h>28 26 #include <pj/errno.h> 29 27 #include <pj/except.h> … … 231 229 232 230 if (cstr_thread_name && pj_strlen(&thread_name) < sizeof(thread->obj_name)-1) 233 pj_ sprintf(thread->obj_name, cstr_thread_name, thread->idthread);231 pj_ansi_sprintf(thread->obj_name, cstr_thread_name, thread->idthread); 234 232 else 235 pj_ sprintf(thread->obj_name, "thr%p", (void*)thread->idthread);233 pj_ansi_sprintf(thread->obj_name, "thr%p", (void*)thread->idthread); 236 234 237 235 rc = pj_thread_local_set(thread_tls_id, thread); … … 310 308 311 309 if (strchr(thread_name, '%')) { 312 pj_ snprintf(rec->obj_name, PJ_MAX_OBJ_NAME, thread_name, rec);310 pj_ansi_snprintf(rec->obj_name, PJ_MAX_OBJ_NAME, thread_name, rec); 313 311 } else { 314 strncpy(rec->obj_name, thread_name, PJ_MAX_OBJ_NAME);312 pj_ansi_strncpy(rec->obj_name, thread_name, PJ_MAX_OBJ_NAME); 315 313 rec->obj_name[PJ_MAX_OBJ_NAME-1] = '\0'; 316 314 } … … 689 687 } 690 688 if (strchr(name, '%')) { 691 pj_ snprintf(mutex->obj_name, PJ_MAX_OBJ_NAME, name, mutex);689 pj_ansi_snprintf(mutex->obj_name, PJ_MAX_OBJ_NAME, name, mutex); 692 690 } else { 693 strncpy(mutex->obj_name, name, PJ_MAX_OBJ_NAME);691 pj_ansi_strncpy(mutex->obj_name, name, PJ_MAX_OBJ_NAME); 694 692 mutex->obj_name[PJ_MAX_OBJ_NAME-1] = '\0'; 695 693 } … … 1045 1043 } 1046 1044 if (strchr(name, '%')) { 1047 pj_ snprintf(sem->obj_name, PJ_MAX_OBJ_NAME, name, sem);1045 pj_ansi_snprintf(sem->obj_name, PJ_MAX_OBJ_NAME, name, sem); 1048 1046 } else { 1049 strncpy(sem->obj_name, name, PJ_MAX_OBJ_NAME);1047 pj_ansi_strncpy(sem->obj_name, name, PJ_MAX_OBJ_NAME); 1050 1048 sem->obj_name[PJ_MAX_OBJ_NAME-1] = '\0'; 1051 1049 } … … 1175 1173 } 1176 1174 if (strchr(name, '%')) { 1177 pj_ snprintf(event->obj_name, PJ_MAX_OBJ_NAME, name, event);1175 pj_ansi_snprintf(event->obj_name, PJ_MAX_OBJ_NAME, name, event); 1178 1176 } else { 1179 strncpy(event->obj_name, name, PJ_MAX_OBJ_NAME);1177 pj_ansi_strncpy(event->obj_name, name, PJ_MAX_OBJ_NAME); 1180 1178 event->obj_name[PJ_MAX_OBJ_NAME-1] = '\0'; 1181 1179 }
Note: See TracChangeset
for help on using the changeset viewer.