From da361aa97d3c13e571e35e8861b6bc348c845eb3 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 22 Jun 2010 14:20:49 +0000 Subject: [PATCH] 2010-06-22 Sebastian Huber * libcsupport/src/mount.c: Fixed string assignment in mount entry allocation. --- cpukit/libcsupport/src/mount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpukit/libcsupport/src/mount.c b/cpukit/libcsupport/src/mount.c index f7926a0e7f..b4f3fd4d5e 100644 --- a/cpukit/libcsupport/src/mount.c +++ b/cpukit/libcsupport/src/mount.c @@ -112,13 +112,13 @@ static rtems_filesystem_mount_table_entry_t *alloc_mount_table_entry( char *str = (char *) mt_entry + sizeof( *mt_entry ); strcpy( str, filesystemtype ); - str += filesystemtype_size; mt_entry->type = str; + str += filesystemtype_size; if ( source_or_null != NULL ) { strcpy( str, source_or_null ); - str += source_size; mt_entry->dev = str; + str += source_size; } strcpy( str, target );