Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Ticket #387: pr387.diff

File pr387.diff, 1.2 KB (added by Ralf Corsepius, on 12/03/06 at 13:31:13)

pr387.diff

  • ide/ata.c

    RCS file: /usr1/CVS/rtems/c/src/libchip/ide/ata.c,v
    retrieving revision 1.2
    diff -u -r1.2 ata.c
     
    11851185            ata_devs[ata_devs_number].ctrl_minor = ctrl_minor;
    11861186            ata_devs[ata_devs_number].device = dev;
    11871187
    1188             snprintf(name, ATA_MAX_NAME_LENGTH, "/dev/hd%c",
    1189                      'a' + 2 * ctrl_minor + dev);
     1188            /* The space leaves a hole for the character. */
     1189            strcpy(name, "/dev/hd ");
     1190            name[7] = 'a' + 2 * ctrl_minor + dev;
     1191
    11901192            device = rtems_filesystem_make_dev_t(
    11911193                         major,
    11921194                         (ata_devs_number *
     
    13141316            break;         
    13151317    }
    13161318}
     1319
  • ide/ata_internal.h

    RCS file: /usr1/CVS/rtems/c/src/libchip/ide/ata_internal.h,v
    retrieving revision 1.2
    diff -u -r1.2 ata_internal.h
     
    325325
    326326#endif /* __ATA_INTERNAL_H__ */
    327327
    328  
    329  No newline at end of file