change log for network-demos (2011-03-28)

rtems-vc at rtems.org rtems-vc at rtems.org
Mon Mar 28 11:10:05 UTC 2011


 *sh*:
2011-03-29     Sebastian Huber <Sebastian.Huber at embedded-brains.de>

	* mcast/listener.c: Output only received characters.

M   1.38  ChangeLog
M    1.2  mcast/listener.c

diff -u network-demos/ChangeLog:1.37 network-demos/ChangeLog:1.38
--- network-demos/ChangeLog:1.37	Thu Mar  3 14:04:48 2011
+++ network-demos/ChangeLog	Mon Mar 28 05:25:38 2011
@@ -1,3 +1,7 @@
+2011-03-29     Sebastian Huber <Sebastian.Huber at embedded-brains.de>
+
+	* mcast/listener.c: Output only received characters.
+
 2011-03-03	Joel Sherrill <joel.sherrill at oarcorp.com>
 
 	* networkconfig-qemu.h: VirtualBox uses 10.0.x.x for its eth0 so we

diff -u network-demos/mcast/listener.c:1.1 network-demos/mcast/listener.c:1.2
--- network-demos/mcast/listener.c:1.1	Wed Sep 19 16:52:02 2007
+++ network-demos/mcast/listener.c	Mon Mar 28 05:25:38 2011
@@ -30,7 +30,7 @@
      struct sockaddr_in addr;
      int fd, nbytes,addrlen;
      struct ip_mreq mreq;
-     char msgbuf[MSGBUFSIZE];
+     char msgbuf[MSGBUFSIZE + 1];
 
      u_int yes=1;            /*** MODIFICATION TO ORIGINAL */
 
@@ -77,6 +77,7 @@
 	       perror("recvfrom");
 	       exit(1);
 	  }
+	  msgbuf [nbytes] = '\0';
 	  puts(msgbuf);
      }
 }



--

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/20110328/fe67b9eb/attachment.html>


More information about the vc mailing list