Replaced overkilling sprintf() usage.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19760 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2007-01-10 00:34:04 +00:00
parent f4c47853ac
commit b795f04c46
+3 -2
View File
@@ -72,8 +72,9 @@ new_dpc_thread(const char *name, long priority, int max_dpc)
queue->list[i].function = NULL;
queue->list[i].arg = NULL;
}
sprintf(str, "%.*s_wakeup_sem", (int) sizeof(str) - 11, name);
strncpy(str, name, sizeof(str));
strncat(str, "_wakeup_sem", sizeof(str));
queue->wakeup_sem = create_sem(-1, str);
set_sem_owner(queue->wakeup_sem, B_SYSTEM_TEAM);