3rd Repo, trying to figure this out.

Dependencies:   LPS25H hts221

Fork of SOFT253_Template_Weather_OS_54 by Stage-1 Students SoCEM

Revision:
82:668b51a39148
Parent:
81:996c0a3319b4
Child:
83:0d3572a8a851
--- a/LocalDate/LocalDate.cpp	Thu May 11 14:34:53 2017 +0000
+++ b/LocalDate/LocalDate.cpp	Thu May 11 15:53:15 2017 +0000
@@ -47,7 +47,7 @@
     char* LocalDate::ToString()
     {
         char *charArray = new char[40];
-        sprintf(charArray,"%i/%i/%i - %i:%i:%i",day,month,year,hour,min,sec);
+        snprintf(charArray, 256, "%i/%i/%i, %i:%i:%i",day,month,year,hour,min,sec);
         return charArray;
     }