Changeset f1fcf71d in rtems


Ignore:
Timestamp:
Jul 1, 2010, 2:57:08 PM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.10
Children:
c114654
Parents:
e8cec9e
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

    re8cec9e rf1fcf71d  
    2222
    2323        * rtems/Makefile.am: Remove the stray 'c' file.
     24
     252010-06-22      Sebastian Huber <sebastian.huber@embedded-brains.de>
     26
     27        * libcsupport/src/mount.c: Fixed string assignment in mount entry
     28        allocation.
    2429
    25302010-06-21      Joel Sherrill <joel.sherrilL@OARcorp.com>
  • cpukit/libcsupport/src/mount.c

    re8cec9e rf1fcf71d  
    112112    char *str = (char *) mt_entry + sizeof( *mt_entry );
    113113
     114    strcpy( str, filesystemtype );
    114115    mt_entry->type = str;
    115     strcpy( str, filesystemtype );
     116    str += filesystemtype_size;
    116117
    117118    if ( source_or_null != NULL ) {
    118       str += filesystemtype_size;
     119      strcpy( str, source_or_null );
    119120      mt_entry->dev = str;
    120       strcpy( str, source_or_null );
    121     }
    122 
    123     str += source_size;
     121      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.