mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 01:15:12 +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,3 +1,8 @@
|
||||
2010-06-22 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* libcsupport/src/mount.c: Fixed string assignment in mount entry
|
||||
allocation.
|
||||
|
||||
2010-06-21 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||
|
||||
* posix/src/keycreate.c, posix/src/killinfo.c: Remove more ITRON
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user