Lab2_web / Mbed 2 deprecated webserverBlinky

Dependencies:   mbed

Fork of webserverBlinky by RealTimeCompLab2

Revision:
70:713f86229288
Parent:
69:23f560087c16
Child:
71:965619fedb3a
--- a/main.cpp	Wed Jun 07 11:18:49 2017 +0000
+++ b/main.cpp	Wed Jun 07 11:24:03 2017 +0000
@@ -499,7 +499,7 @@
 
     char flagInfo[10]; // text string presentating the TCP flags
     memset(flagInfo,'.', 9); // fill string with "........."
-    memset(flagInfo,0,1); // null terminate string
+    memset(flagInfo+9,0,1); // null terminate string
 
     if (flags & (1<<0)) flagInfo[0]='F';
     if (flags & (1<<1)) flagInfo[1]='S';