Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset b60c582 in mainline for kernel/generic/src/proc/task.c


Ignore:
Timestamp:
2009-04-03T08:02:30Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
2398ee9
Parents:
9be1d58
Message:

update for string changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/task.c

    r9be1d58 rb60c582  
    152152
    153153        memcpy(ta->name, name, TASK_NAME_BUFLEN);
    154         ta->name[TASK_NAME_BUFLEN - 1] = '\0';
     154        ta->name[TASK_NAME_BUFLEN - 1] = 0;
    155155
    156156        atomic_set(&ta->refcount, 0);
     
    274274                return (unative_t) rc;
    275275
    276         namebuf[name_len] = '\0';
    277         strncpy(TASK->name, namebuf, TASK_NAME_BUFLEN);
     276        namebuf[name_len] = 0;
     277        str_ncpy(TASK->name, namebuf, TASK_NAME_BUFLEN);
    278278
    279279        return EOK;
Note: See TracChangeset for help on using the changeset viewer.