Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface mbed-rtos mbed
Fork of TCPEchoClient by
Diff: main.cpp
- Revision:
- 2:563aa530f0dd
- Parent:
- 1:a51d8ed156e6
- Child:
- 3:3fbf0efec25a
--- a/main.cpp Thu Jul 26 10:10:48 2012 +0000
+++ b/main.cpp Thu Jul 26 16:45:55 2012 +0000
@@ -21,7 +21,7 @@
char buf[256];
int n = sock.receive(buf, 256);
- // buf[n] = '\0';
+ buf[n] = '\0';
printf("%s", buf);
sock.close();
