Subversion Repositories HelenOS

Rev

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

Rev 4011 Rev 4013
Line 272... Line 272...
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
    strcpy(TASK->name, namebuf);
277
    strncpy(TASK->name, namebuf, TASK_NAME_BUFLEN);
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.