change log for rtems (2010-06-22)

rtems-vc at rtems.org rtems-vc at rtems.org
Tue Jun 22 15:11:41 UTC 2010


 *sh*:
2010-06-22	Sebastian Huber <sebastian.huber at embedded-brains.de>

	* libcsupport/src/mount.c: Fixed string assignment in mount entry
	allocation.

M   1.37  cpukit/libcsupport/src/mount.c

diff -u rtems/cpukit/libcsupport/src/mount.c:1.36 rtems/cpukit/libcsupport/src/mount.c:1.37
--- rtems/cpukit/libcsupport/src/mount.c:1.36	Tue Jun 22 08:31:13 2010
+++ rtems/cpukit/libcsupport/src/mount.c	Tue Jun 22 09:20:49 2010
@@ -112,13 +112,13 @@
     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 );



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100622/aecc27d8/attachment.html>


More information about the vc mailing list