Subversion Repositories HelenOS

Rev

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

Rev 4263 Rev 4327
Line 271... Line 271...
271
 
271
 
272
    rc = copy_from_uspace(namebuf, uspace_name, name_len);
272
    rc = copy_from_uspace(namebuf, uspace_name, name_len);
273
    if (rc != 0)
273
    if (rc != 0)
274
        return (unative_t) rc;
274
        return (unative_t) rc;
275
 
275
 
276
    namebuf[name_len] = 0;
276
    namebuf[name_len] = '\0';
277
    str_ncpy(TASK->name, namebuf, TASK_NAME_BUFLEN);
277
    str_cpy(TASK->name, TASK_NAME_BUFLEN, namebuf);
278
 
278
 
279
    return EOK;
279
    return EOK;
280
}
280
}
281
 
281
 
282
/** Find task structure corresponding to task ID.
282
/** Find task structure corresponding to task ID.