![](/media/cache/profiles/ba5be68d3d541f2ca043d77fc54fe702.jpg.50x50_q85.jpg)
3rd Repo, trying to figure this out.
Fork of SOFT253_Template_Weather_OS_54 by
Diff: LocalDate/LocalDate.cpp
- 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; }