Subversion Repositories HelenOS

Rev

Rev 4343 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4343 Rev 4344
Line 198... Line 198...
198
    int rc;
198
    int rc;
199
    char namebuf[TASK_NAME_BUFLEN];
199
    char namebuf[TASK_NAME_BUFLEN];
200
 
200
 
201
    /* Cap length of name and copy it from userspace. */
201
    /* Cap length of name and copy it from userspace. */
202
 
202
 
203
    if (name_len > THREAD_NAME_BUFLEN - 1)
203
    if (name_len > TASK_NAME_BUFLEN - 1)
204
        name_len = THREAD_NAME_BUFLEN - 1;
204
        name_len = TASK_NAME_BUFLEN - 1;
205
 
205
 
206
    rc = copy_from_uspace(namebuf, uspace_name, name_len);
206
    rc = copy_from_uspace(namebuf, uspace_name, name_len);
207
    if (rc != 0)
207
    if (rc != 0)
208
        return (unative_t) rc;
208
        return (unative_t) rc;
209
 
209