change log for rtems (2010-06-22)

rtems-vc at rtems.org rtems-vc at rtems.org
Tue Jun 22 14:11:59 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.2449  cpukit/ChangeLog
M   1.36  cpukit/libcsupport/src/mount.c

diff -u rtems/cpukit/ChangeLog:1.2448 rtems/cpukit/ChangeLog:1.2449
--- rtems/cpukit/ChangeLog:1.2448	Mon Jun 21 17:54:54 2010
+++ rtems/cpukit/ChangeLog	Tue Jun 22 08:31:13 2010
@@ -1,3 +1,8 @@
+2010-06-22	Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+	* libcsupport/src/mount.c: Fixed string assignment in mount entry
+	allocation.
+
 2010-06-21	Joel Sherrill <joel.sherrill at oarcorp.com>
 
 	* posix/src/keycreate.c, posix/src/killinfo.c: Remove more ITRON

diff -u rtems/cpukit/libcsupport/src/mount.c:1.35 rtems/cpukit/libcsupport/src/mount.c:1.36
--- rtems/cpukit/libcsupport/src/mount.c:1.35	Wed Jun  9 04:15:50 2010
+++ rtems/cpukit/libcsupport/src/mount.c	Tue Jun 22 08:31:13 2010
@@ -111,18 +111,18 @@
   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;



--

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/9ba5d6e0/attachment-0001.html>


More information about the vc mailing list