summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2010-07-01 14:57:08 +0000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2010-07-01 14:57:08 +0000
commitf1fcf71d68d70ea1eeff051f643da9bb90866021 (patch)
tree243ff751ebf751c6fbe05084d8acb56cd06ecdbd /cpukit/libcsupport
parent2010-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff)
downloadrtems-f1fcf71d68d70ea1eeff051f643da9bb90866021.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')
-rw-r--r--cpukit/libcsupport/src/mount.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/libcsupport/src/mount.c b/cpukit/libcsupport/src/mount.c
index c73ce89e35..b4f3fd4d5e 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 );
+ mt_entry->type = str;
+ str += filesystemtype_size;
if ( source_or_null != NULL ) {
- str += filesystemtype_size;
- mt_entry->dev = str;
strcpy( str, source_or_null );
+ mt_entry->dev = str;
+ str += source_size;
}
- str += source_size;
- mt_entry->target = str;
strcpy( str, target );
+ mt_entry->target = str;
}
*target_length_ptr = target_length;