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

Changeset b60c582 in mainline for kernel/generic/src/main/kinit.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/main/kinit.c

    r9be1d58 rb60c582  
    187187               
    188188                name = init.tasks[i].name;
    189                 if (name[0] == '\0')
     189                if (name[0] == 0)
    190190                        name = "<unknown>";
    191191               
    192192                ASSERT(TASK_NAME_BUFLEN >= INIT_PREFIX_LEN);
    193                 strncpy(namebuf, INIT_PREFIX, TASK_NAME_BUFLEN);
    194                 strncpy(namebuf + INIT_PREFIX_LEN, name,
     193                str_ncpy(namebuf, INIT_PREFIX, TASK_NAME_BUFLEN);
     194                str_ncpy(namebuf + INIT_PREFIX_LEN, name,
    195195                    TASK_NAME_BUFLEN - INIT_PREFIX_LEN);
    196196               
Note: See TracChangeset for help on using the changeset viewer.