Subversion Repositories HelenOS

Rev

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

Rev 3896 Rev 3983
Line 204... Line 204...
204
    int rc;
204
    int rc;
205
    char namebuf[TASK_NAME_BUFLEN];
205
    char namebuf[TASK_NAME_BUFLEN];
206
 
206
 
207
    /* Cap length of name and copy it from userspace. */
207
    /* Cap length of name and copy it from userspace. */
208
 
208
 
209
    if (name_len > THREAD_NAME_BUFLEN - 1)
209
    if (name_len > TASK_NAME_BUFLEN - 1)
210
        name_len = THREAD_NAME_BUFLEN - 1;
210
        name_len = TASK_NAME_BUFLEN - 1;
211
 
211
 
212
    rc = copy_from_uspace(namebuf, uspace_name, name_len);
212
    rc = copy_from_uspace(namebuf, uspace_name, name_len);
213
    if (rc != 0)
213
    if (rc != 0)
214
        return (unative_t) rc;
214
        return (unative_t) rc;
215
 
215