mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
2010-06-22 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/mount.c: Fixed string assignment in mount entry allocation.
This commit is contained in:
1 parent
0378b47884
commit
da361aa97d
1 file changed
+2
-2
@@ -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 );
|
||||
|
||||
Reference in new issue
Block a user