Changeset 13bcb3e in rtems for cpukit/libblock


Ignore:
Timestamp:
Mar 22, 2013, 2:10:37 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
f2a1ba5
Parents:
7b14e8b
Message:

ramdisk: Fix device name generation

File:
1 edited

Legend:

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

    r7b14e8b r13bcb3e  
    5151        dev_t dev = rtems_filesystem_make_dev_t(major, i);
    5252        char name [] = RAMDISK_DEVICE_BASE_NAME "a";
    53         name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;
     53        name [sizeof(RAMDISK_DEVICE_BASE_NAME) - 1] += i;
    5454        r->block_size = c->block_size;
    5555        r->block_num = c->block_num;
Note: See TracChangeset for help on using the changeset viewer.