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


Ignore:
Timestamp:
2009-03-02T22:46:52Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2f57690
Parents:
20f1597
Message:

Didn't need strrcpy() afterall. Also remove strcpy() since strncpy() is better.

File:
1 edited

Legend:

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

    r20f1597 r561db3f  
    275275
    276276        namebuf[name_len] = '\0';
    277         strcpy(TASK->name, namebuf);
     277        strncpy(TASK->name, namebuf, TASK_NAME_BUFLEN);
    278278
    279279        return EOK;
Note: See TracChangeset for help on using the changeset viewer.