Changeset 239bbd0 in network-demos


Ignore:
Timestamp:
Mar 28, 2011, 10:25:38 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
9313a63
Parents:
3713ec7
Message:

2011-03-29 Sebastian Huber <Sebastian.Huber@…>

  • mcast/listener.c: Output only received characters.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r3713ec7 r239bbd0  
     12011-03-29     Sebastian Huber <Sebastian.Huber@embedded-brains.de>
     2
     3        * mcast/listener.c: Output only received characters.
     4
    152011-03-03      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • mcast/listener.c

    r3713ec7 r239bbd0  
    3131     int fd, nbytes,addrlen;
    3232     struct ip_mreq mreq;
    33      char msgbuf[MSGBUFSIZE];
     33     char msgbuf[MSGBUFSIZE + 1];
    3434
    3535     u_int yes=1;            /*** MODIFICATION TO ORIGINAL */
     
    7878               exit(1);
    7979          }
     80          msgbuf [nbytes] = '\0';
    8081          puts(msgbuf);
    8182     }
Note: See TracChangeset for help on using the changeset viewer.