diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-06-22 13:31:13 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-06-22 13:31:13 +0000 |
commit | 0378b47884d5c2f695d0b0573c05967b85c6d3a2 (patch) | |
tree | 88984c57a11f938ad3a02899313b7def9855270e /cpukit/libcsupport/src/mount.c | |
parent | 2010-06-22 Arnout Vandecappelle <arnout@mind.be> (diff) | |
download | rtems-0378b47884d5c2f695d0b0573c05967b85c6d3a2.tar.bz2 |
2010-06-22 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/mount.c: Fixed string assignment in mount entry
allocation.
Diffstat (limited to 'cpukit/libcsupport/src/mount.c')
-rw-r--r-- | cpukit/libcsupport/src/mount.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/libcsupport/src/mount.c b/cpukit/libcsupport/src/mount.c index c73ce89e35..f7926a0e7f 100644 --- a/cpukit/libcsupport/src/mount.c +++ b/cpukit/libcsupport/src/mount.c @@ -111,18 +111,18 @@ static rtems_filesystem_mount_table_entry_t *alloc_mount_table_entry( if ( mt_entry != NULL ) { char *str = (char *) mt_entry + sizeof( *mt_entry ); - mt_entry->type = str; strcpy( str, filesystemtype ); + str += filesystemtype_size; + mt_entry->type = str; if ( source_or_null != NULL ) { - str += filesystemtype_size; - mt_entry->dev = str; strcpy( str, source_or_null ); + str += source_size; + mt_entry->dev = str; } - str += source_size; - mt_entry->target = str; strcpy( str, target ); + mt_entry->target = str; } *target_length_ptr = target_length; |