Changeset 7faabb7 in mainline for kernel/generic/src/proc/thread.c
- Timestamp:
- 2008-11-07T23:16:28Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 24345a5
- Parents:
- 86e3d62
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/thread.c
r86e3d62 r7faabb7 709 709 */ 710 710 unative_t sys_thread_create(uspace_arg_t *uspace_uarg, char *uspace_name, 711 thread_id_t *uspace_thread_id)711 size_t name_len, thread_id_t *uspace_thread_id) 712 712 { 713 713 thread_t *t; … … 716 716 int rc; 717 717 718 rc = copy_from_uspace(namebuf, uspace_name, THREAD_NAME_BUFLEN); 718 if (name_len >= THREAD_NAME_BUFLEN) 719 name_len = THREAD_NAME_BUFLEN - 1; 720 721 rc = copy_from_uspace(namebuf, uspace_name, name_len); 719 722 if (rc != 0) 720 723 return (unative_t) rc; 724 725 namebuf[name_len] = '\0'; 721 726 722 727 /*
Note:
See TracChangeset
for help on using the changeset viewer.