Core Base Classes for the Light Endpoints

Dependencies:   BufferedSerial

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more

Revision:
81:9e902c2b855e
Parent:
80:805143f36554
Child:
111:dac439bf902b
--- a/main.cpp	Tue Mar 11 15:45:30 2014 +0000
+++ b/main.cpp	Tue Mar 11 15:47:41 2014 +0000
@@ -71,7 +71,7 @@
  // strdup()
  char *strdup(char *str) {
      if (str != NULL) {
-         char *cp = (char *)malloc(strlen(str)+1));
+         char *cp = (char *)malloc(strlen(str)+1);
          memset(cp,0,strlen(str)+1);
          memcpy(cp,str,strlen(str));
          return cp;