Changeset 0378b478 in rtems


Ignore:
Timestamp:
Jun 22, 2010, 1:31:13 PM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
da361aa
Parents:
0596902
Message:

2010-06-22 Sebastian Huber <sebastian.huber@…>

  • libcsupport/src/mount.c: Fixed string assignment in mount entry allocation.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r0596902 r0378b478  
     12010-06-22      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * libcsupport/src/mount.c: Fixed string assignment in mount entry
     4        allocation.
     5
    162010-06-21      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • cpukit/libcsupport/src/mount.c

    r0596902 r0378b478  
    112112    char *str = (char *) mt_entry + sizeof( *mt_entry );
    113113
     114    strcpy( str, filesystemtype );
     115    str += filesystemtype_size;
    114116    mt_entry->type = str;
    115     strcpy( str, filesystemtype );
    116117
    117118    if ( source_or_null != NULL ) {
    118       str += filesystemtype_size;
     119      strcpy( str, source_or_null );
     120      str += source_size;
    119121      mt_entry->dev = str;
    120       strcpy( str, source_or_null );
    121     }
    122 
    123     str += source_size;
     122    }
     123
     124    strcpy( str, target );
    124125    mt_entry->target = str;
    125     strcpy( str, target );
    126126  }
    127127
Note: See TracChangeset for help on using the changeset viewer.