Changeset f8811e4 in rtems


Ignore:
Timestamp:
Mar 22, 2013, 2:10:37 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.10
Children:
a62a3c32
Parents:
272a80b7
git-author:
Sebastian Huber <sebastian.huber@…> (03/22/13 14:10:37)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/27/14 14:34:32)
Message:

ramdisk: Fix device name generation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/ramdisk-config.c

    r272a80b7 rf8811e4  
    5353        dev_t dev = rtems_filesystem_make_dev_t(major, i);
    5454        char name [] = RAMDISK_DEVICE_BASE_NAME "a";
    55         name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;
     55        name [sizeof(RAMDISK_DEVICE_BASE_NAME) - 1] += i;
    5656        r->block_size = c->block_size;
    5757        r->block_num = c->block_num;
Note: See TracChangeset for help on using the changeset viewer.