Changeset 24345a5 in mainline for kernel/generic/src/proc/thread.c
- Timestamp:
- 2008-11-08T10:01:59Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 24d6efc
- Parents:
- 7faabb7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
r7faabb7 r24345a5 280 280 * call. The task's lock may not be held. 281 281 * @param flags Thread flags. 282 * @param name Symbolic name .282 * @param name Symbolic name (a copy is made). 283 283 * @param uncounted Thread's accounting doesn't affect accumulated task 284 284 * accounting. … … 317 317 318 318 memcpy(t->name, name, THREAD_NAME_BUFLEN); 319 t->name[THREAD_NAME_BUFLEN - 1] = '\0'; 319 320 320 321 t->thread_code = func; … … 716 717 int rc; 717 718 718 if (name_len > = THREAD_NAME_BUFLEN)719 if (name_len > THREAD_NAME_BUFLEN - 1) 719 720 name_len = THREAD_NAME_BUFLEN - 1; 720 721
Note:
See TracChangeset
for help on using the changeset viewer.